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

Escaping mustaches #67

Open
raiden-dev opened this issue Jul 27, 2015 · 3 comments
Open

Escaping mustaches #67

raiden-dev opened this issue Jul 27, 2015 · 3 comments

Comments

@raiden-dev
Copy link

In Handlebars, mustaches can be escaped by backslash. Highlighting such things could be useful.
See jsfiddle example on how escaping works.

@daaain
Copy link
Owner

daaain commented Jul 28, 2015

Hmm, interesting, didn't know about this!

Sounds like a good feature to add, though at this point (just got my second little one) I can't promise when will I get around to do it.

@raiden-dev
Copy link
Author

I currently heavy use escaping in my 2-step templating process and be glad to create a PR soon, because I miss this feature much.

@daaain
Copy link
Owner

daaain commented Jul 29, 2015

Ah, that would be brilliant, I'll make sure to review your PR!

I've just added a test case from your fiddle: https://github.com/daaain/Handlebars/blob/master/test/inline_script.handlebars.html#L116

Also there's a bit in the readme about contribution, have a read and let me know if you have any questions: https://github.com/daaain/Handlebars#testing--contribution

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

No branches or pull requests

2 participants