Last active
December 26, 2015 08:59
-
-
Save marr/7126290 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[% 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 %] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This somewhat fixes it, except the '0' is interpreted as falsy so the [% IF outerPrefix %] check does not pass.