jverzani / Mustache.jl

Port of mustache.js to julia
MIT License
128 stars 36 forks source link

Combine custom tags with no HTML escaping #114

Closed davidanthoff closed 4 years ago

davidanthoff commented 4 years ago

How can I combine custom tags with the option to not do the HTML escaping?

In particular, I have a call like this:

Mustache.render(file, content, vals, tags = ("\$[[", "]]"))

I would have thought that $[[{JL_VERSION_MATRIX}]] would work (i.e. use the custom tag to demark a substitution, and then one pair of curly braces to prevent the HTML escaping), but that doesn't seem to be the case.

jverzani commented 4 years ago

Thanks! This should work as you expected. I think #115 will address this. Please let me know if you bump into other issues.

davidanthoff commented 4 years ago

Awesome, thanks!

I can't really test this with a version that isn't tagged, though (the whole thing is part of a complicated automated github action setup). Could you maybe tag a new release?

jverzani commented 4 years ago

Should be tagged now.

davidanthoff commented 4 years ago

Works perfectly now, thanks a lot for the quick turnaround!