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

How to escape {{ }} #372

Closed
thepurpleblob opened this issue May 14, 2021 · 3 comments
Closed

How to escape {{ }} #372

thepurpleblob opened this issue May 14, 2021 · 3 comments

Comments

@thepurpleblob
Copy link

Is there some way of passing through the curly braces literally? I'm using mustache in conjunction with Vue which also uses the mustache syntax so I'd like to selectively pass them through unprocessed.

@thepurpleblob
Copy link
Author

Actually.... I immediately realised that I can simply change the delimiters in Vue. But it still might be interesting to know if there's a way

@bobthecow
Copy link
Owner

There is not. The standard approach is to change delimiters.

@Fabacks
Copy link

Fabacks commented Jun 7, 2021

I also use mustache php and mustache js
To ignore the code and leave it to js I use : {{=<% %>=}} my code ignored <%={{ }}=%>

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