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>