Permalink
Browse files

fix include yields. Closes #770

  • Loading branch information...
1 parent 7a48ace commit 454975f666eccf420f8205b3483f34a9ba62492a @tj tj committed Sep 18, 2012
View
@@ -99,6 +99,7 @@ Block.prototype.includeBlock = function(){
else if (node.textOnly) continue;
else if (node.includeBlock) ret = node.includeBlock();
else if (node.block && !node.block.isEmpty()) ret = node.block.includeBlock();
+ if (ret.yield) return ret;
}
return ret;
@@ -0,0 +1,10 @@
+html
+ head
+ title
+ body
+ h1 Page
+ #content
+ #content-wrapper
+ yield
+ #footer
+ stuff
@@ -0,0 +1,17 @@
+<html>
+ <head>
+ <title></title>
+ </head>
+ <body>
+ <h1>Page</h1>
+ <div id="content">
+ <div id="content-wrapper">
+ <p>some content</p>
+ <p>and some more</p>
+ </div>
+ </div>
+ <div id="footer">
+ <stuff></stuff>
+ </div>
+ </body>
+</html>
@@ -0,0 +1,4 @@
+
+include auxiliary/yield-nested
+ p some content
+ p and some more

0 comments on commit 454975f

Please sign in to comment.