Skip to content
Myr

Created examples/partials to demonstrate view name, file, object resolution

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Hunter Loftis · committed by Tj Holowaychuk · parent 1c2e9a4 · Browse files · 6 files+59 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

6 files+59 added−0 removed

  • other:+59 added−0 removed

6 files+59 added−0 removed

added:examples/partials/views/ninjas/_victim_name.jade+1 added
1li!= victimName
added:examples/partials/views/ninjas/_weapon.jade+1 added
1li!= weapon
added:examples/partials/views/ninjas/show.jade+14 added
1h1!= ninja.name23// file, partial name, and partial object all match ('summary')4#summary!= partial('summary', ninja.summary)56// file, partial name = '_weapon', resolves to 'weapon' object within partial7#weapons8 h2 Weapons9 ul!= partial('_weapon', ninja.weapons)10 11// partial name 'victim_name' resolves to '_victim_name.jade' file and 'victimName' object12#victims13 h2 Victims14 ul!= partial('victim_name', ninja.victims)
added:examples/partials/views/ninjas/summary.jade+4 added
1h2 Summary2p!= summary.email3p!= summary.description4p!= 'taught by master ' + summary.master
added:examples/partials/views/layout.jade+5 added
1!!!2html3 head4 title Partials Example5 body!= body
added:examples/partials/app.js+34 added