bobthecow/mustache.php — Issue #77: unescape tag doesn't work inside section
Author: av-trentm
Created: 2012-01-25 23:11:38+00:00
State: open

Hi guys,

I've been trying to make a sub-array value render unescaped with no luck.

Here is what I found - keep in mind, {{Thumb}} is what I want unescaped.

{{#HasMultiThumbs}}

{{#ItemThumbs}}
{{{Thumb}}}
{{/ItemThumbs}}

{{/HasMultiThumbs}}

returns as <img src="

I then tried triple bracing ALL of the containing sections (#ItemThumbs, and #HasMultiThumbs) - no luck.
I then tried triple bracing ONLY the direct parent section #ItemThumbs - no luck.
and finally ONLY the ultimate parent #HasMultiThumbs - no luck

In all 3 of those cases, Thumb was always triple braced.

I then created a new variable with HTML, and put {{{NewVar}}} outside of any sections and it worked perfectly.

Is this something you guys could look at - or at least lead me on the right part of the code and I'll have a hack at it...

Cheers.