Skip to content
Myr

refactored partials example

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

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent 66a6214 · Browse files · 5 files+7 added−6 removed
This commit

State

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

Diff stats

5 files+7 added−6 removed

  • other:+7 added−6 removed

5 files+7 added−6 removed

modified:examples/helloworld/app.js+1 added-1 removed
modified:examples/jade/app.js+2 added-2 removed
added:examples/partials/views/ninjas/victim/index.jade+1 added
1li.victim= victim
modified:examples/partials/views/ninjas/show.jade+3 added-2 removed
9 unmodified lines
10 // the weapon partial is rendered once per item in11 // the weapons array or "collection"12 ul!= partial('weapon', ninja.weapons)13 14// partial name 'victim_name' resolves to '_victim_name.jade' file and 'victimName' object14// partial name 'victim' resolves to 'victim.jade'15// or 'victim/index.jade', providing the "victim" local16#victims17 h2 Victims17 ul!= partial('victim_name', ninja.victims)18 ul!= partial('victim', ninja.victims)
deleted:examples/partials/views/ninjas/victim_name.jade-1 removed
1li.victim= victimName