javascript - Jade - subsequent lines becoming children of included partial? -
i having issues simple jade layout, example:
include test.jade #bar hi and in test.jade
#foo hello and no matter what, #bar rendered child of #foo.
<div id="foo">hello <div id="bar">hi</div> </div> when trying achieve
<div id="foo">hello</div> <div id="bar">hi</div> i'm confused if i'm doing wrong or if intended behaviour of jade?
i building jade templates brunch , static-jade-brunch i'm not sure if problem lies or if missing something?
hm, okay, i'm not sure if right solution, found had wrap include in block:
block test include test.jade #foo hello and have desired output.
Comments
Post a Comment