<div>
{{#if a}}
<p>a</p>
{{/if}}
<p>this can be used as an anchor</p>
{{#if b}}
<p>b</p>
{{#if c}}
<p>c</p>
<p>so can this</p>
{{#if d}}
<p>d</p>
<!-- d can use 'null' as its anchor -->
</div>
{{#if e}}
<p>e</p>