Well the question says it all, I've been wanting to use {% set %} {% endset
%} with jinja2 for a while - it's available at 2.8
(By the way the cloud playground is broken:
https://cloud-playground.appspot.com/playground/?template_url=https:%2F%2Fgithub.com%2FGoogleCloudPlatform%2Fappengine-guestbook-python%2Fblob%2Fpart5-templates%2F#app.yaml
- it doesn't load, it's the first time I'm seeing the playground - so I'm
not sure how it works when it works)
I'm interested in alternatives too, if anyone has any
It's for a very specific use case, where I replace sections of translated
phrases with html tags at templates - for example, "A [S]Tag[/S]" becomes
"A <span style='gg'>Tag</span>" etc.
Storing raw html in variables is practical, otherwise putting htmls into
jinja2 strings gets complicated due to quotation marks
Without the set/endset, macro's are a nice alternative, but an overkill
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-appengine/a13e0de7-f7e6-4025-9176-aac3865237f5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.