You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently had the need to generate a URL from a mustache template. Because in these cases the values must be url-encoded rather than HTML escaped, it would have been very helpful to have conntrol over the mustache::escape function.
While there's other workarounds for this, I think a worthwhile feature would be for mustache to expose some mechanism for controlling the escaping performed on template renderings.
I think a reasonable implementation could be to define a mustache:*escape-function* variable which callers to mustache:render could bind. And/or, an additional optional or keyword parameter to mustache:render to achieve similar.
I'm happy to implement but I'd like some feedback/thoughts.
Thanks!
The text was updated successfully, but these errors were encountered:
I recently had the need to generate a URL from a mustache template. Because in these cases the values must be url-encoded rather than HTML escaped, it would have been very helpful to have conntrol over the
mustache::escape
function.While there's other workarounds for this, I think a worthwhile feature would be for mustache to expose some mechanism for controlling the escaping performed on template renderings.
I think a reasonable implementation could be to define a
mustache:*escape-function*
variable which callers tomustache:render
could bind. And/or, an additional optional or keyword parameter tomustache:render
to achieve similar.I'm happy to implement but I'd like some feedback/thoughts.
Thanks!
The text was updated successfully, but these errors were encountered: