mirror of
https://github.com/zebrajr/express.git
synced 2025-12-06 00:19:48 +01:00
more partial examples
This commit is contained in:
parent
b70bde58be
commit
f0e0073a09
1
examples/partials/views/li.jade
Normal file
1
examples/partials/views/li.jade
Normal file
|
|
@ -0,0 +1 @@
|
|||
li= value
|
||||
|
|
@ -1 +1,5 @@
|
|||
li.victim= victim
|
||||
// this is insane overkill, I do not recommend
|
||||
// doing tiny partials like this as it gets expensive
|
||||
// with collections, however this illustrates the new
|
||||
// partial lookup mechanism
|
||||
!= partial('../../li', { object: victim, as: 'value' })
|
||||
Loading…
Reference in New Issue
Block a user