javascript - Nested jade blocks are not getting rendered -
if have jade setup 3 files follows:
1.
//layout.jade doctype html html body block content
2.
//index.jade extends layout block content h1 animals block cat block dog
3.
//animals.jade extends index block cat p meow block dog p bark
the 'cat' , 'dog' blocks not render text view. there wrong including jade file defines multiple blocks i've done above?
i realize split 'cat' , 'dog' blocks 2 separate .jade files , include them separately, that's not i'm trying accomplish here.
any help appreciated. thanks!
in animals.jade, want append block. seek this:
//animals.jade extends index block append cat p meow block append dog p bark
javascript node.js express jade
No comments:
Post a Comment