Make HTML escapes optional
a-teammate opened this issue · 2 comments
a-teammate commented
Currently if we drop in templatedata like vector<int>
it will render as vector<int>
A switch for the renderComponent() function would be cool.
I think even a macro would be sufficient if you do not want to add a "bool escape = true" to the arguments list of "render()"
but probably a complete "Options" enum would be better
kainjow commented
You can use triple mustache syntax for this:
All variables are HTML escaped by default. If you want to return unescaped HTML, use the triple mustache: {{{name}}}.
See the documentation here.
a-teammate commented
ah thank you :)