-
Notifications
You must be signed in to change notification settings - Fork 12
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
Autoescape HTML? #94
Comments
Yeah, i thought about it, but it's not currently implement. |
Correct. Jinja2, has the problem of this simply being enabled by a |
What do you think of this syntax:
|
Looks good! But does this mean that |
Good questions. so both are not valid nim (at least for now): var `foo:baa` = "foo"
proc `:`(s1, s2: string):
echo s1
echo s2
"foo":"baa"
:"foo", "baa" so i guess its save to use. While writing the parsing function for this, i asked myself if there could be other use cases for the ":" syntax. In constrast the Edit: The current design of nimja would not allow
But this needs more testing if it can clash with something. |
Then |
Another option would be to introduce a completely new tag:
in the current nimja, this actually looks like the cleanest solution. $afe you know :) |
This would add complexity if in the future you are to implement user-defined entry and exit syntax. (see EDIT: Jinja1 guide: https://svn.python.org/projects/external/Jinja-1.1/docs/build/altsyntax.html |
Oh i did not know that jinja allows to overwrite this. Interesting. |
Yeah such an Environment is a future step, but a good hint! |
@pbsds i lost the branch where i did the autoescape :/ it might be on an old broken notebook. |
Is this feature implemented? If not: will it ever?
The text was updated successfully, but these errors were encountered: