Skip to content

Instantly share code, notes, and snippets.

@mmun
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mmun/9770862 to your computer and use it in GitHub Desktop.
Save mmun/9770862 to your computer and use it in GitHub Desktop.
{{yield "header"}}
{{yield}}
{{content-for "header"}}
<h1>Doge</h1>
{{/content-for}}
<p>Woooo!</p>

The problem is that when I hit the first yield for "header" I need to execute the inner template in order to build/regsiter the content for "header". Unfortunately, executing the template has a side effect of adding the "Woooo!" stuff to the buffer, resulting in an output like:

<p>Woooo!</p>
<h1>Doge</h1>

<p>Woooo!</p>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment