-
Notifications
You must be signed in to change notification settings - Fork 281
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 Braces #135
Comments
No way to do that no, is it not possible to do |
No, the actual use case is more complex. It looks like: <pre>
{{
${{ bar }}
something {{ foo }} blah {{ variable }}
}}
</pre> where only I think a nice way to work around this is to allow the brace type to be changed in a small block. So something like: {% raw '[' %}
{{ hello }} [[ name ]]
{% endraw %} Where |
P.S: Handlebars uses |
The other way to do in Jinja2 is to do There has been some people wanting another way to escape than |
Can this be closed? |
Sure, if |
Should be ok but do re-open if you have an issue with it! |
Hi @Keats I'm using Tera 0.7.2 because is the one that comes with Rocket 0.2.3, and this is not working for me. Autoescaping is enabled in tera globally (didn't touched that because I can't in the present moment) and my template is this:
But it simply displays {{ contenido }} in the HTML output, when I want the variable value without processing. |
You want |
Can braces be escaped? I know that I can use
raw
, but that doesn't suffice when I want to mix variables with escaped braces such as below wherename
is in the context:I'm looking for something like:
The text was updated successfully, but these errors were encountered: