I am having trouble with include, where the included file has a yield statement in it.
This is with version 0.27.2.
What I want is to have static files layout.jade and index.jade, where index.jade includes layout.jade. Here is a proposed layout:
title The Title
And the index:
p this is the content
But here is the result:
<p>this is the content</p>
Jade is embedding "this is the content" as though there were no yield statement in the layout. It should be in the div with the id of "content".
Am I doing something wrong, or is this an issue?
you're wanting extend, include just literally includes things, extend wraps itself with the file you specify, useful for layouts
actually your example should work, but still I'd check out extend
fix include yields. Closes #770
fixed in 0.27.3