Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If the view's like this: {"path": "/home/chalin"} #648

Closed
snowliy opened this issue Aug 7, 2017 · 2 comments
Closed

If the view's like this: {"path": "/home/chalin"} #648

snowliy opened this issue Aug 7, 2017 · 2 comments

Comments

@snowliy
Copy link

snowliy commented Aug 7, 2017

template: {"path": {{path}}}
If the view's like this: {"path": "/home/chalin"}
the result will: {"path": "/home/chalin"}

@phillipj
Copy link
Collaborator

phillipj commented Aug 7, 2017

That's intended. Mustache.js HTML escapes values by default, if you want to avoid that, use three curly braces ("mustaches"). Example template:

{ "path": {{{path}}} }

See https://mustache.github.io/mustache.5.html for more information about the syntax and behaviour.

Closing this for now, don't hesitate to re-open if this doesn't answer your question.

@phillipj phillipj closed this as completed Aug 7, 2017
@rohitshetty
Copy link

Thanks for the answer!. It helped. Maybe this should goto readme?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants