Skip to content

Instantly share code, notes, and snippets.

@marr
Last active December 26, 2015 08:59
Show Gist options
  • Save marr/7126290 to your computer and use it in GitHub Desktop.
Save marr/7126290 to your computer and use it in GitHub Desktop.
[% MACRO outer BLOCK %]
<div class="outer">
[% WRAPPER inner outerPrefix='0' %]a[% END %]
[% WRAPPER inner %]b[% END %]
</div>
[% END %]
[% BLOCK inner %]
<span>[% IF outerPrefix %][% outerPrefix %]:[% END %][% content %]</span>
[% END %]
[% outer %]
@marr
Copy link
Author

marr commented Oct 23, 2013

This somewhat fixes it, except the '0' is interpreted as falsy so the [% IF outerPrefix %] check does not pass.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment