groue / GRMustache

Flexible and production-ready Mustache templates for MacOS Cocoa and iOS
http://mustache.github.com/
MIT License
1.44k stars 190 forks source link

Add 'set delimiter' functionality for {{{html_safe_tags}}} #30

Closed alfiehanssen closed 11 years ago

alfiehanssen commented 11 years ago

We can already override {{normal_tags}} with our own custom delimiters, it would be VERY useful to be able to do the same for {{{html_safe_tags}}}, currently throws an error and returns a nil string.

groue commented 11 years ago

Hi Alfie.

http://mustache.github.com/mustache.5.html describes the "official" way to render unescaped values with custom delimiters:

You can also use & to unescape a variable: {{& name}}. This may be useful when changing delimiters (see "Set Delimiter" below).

Happy Mustache!