jinja2
problem with jinja2 autoescape in google app engine webapp
I decided to install jinja2 to use with my webapp application in order to support the autoescape functionality. So I installed jinja2 into python 2.5 and created a symlink within my project to point t[详细]
2023-02-03 18:05 分类:问答Django: Switching to Jinja2?
I\'ve got a couple small (500 or 600 lines of template code) Djang开发者_开发百科o sites, and I\'d like to migrate them to using Jinja2… But I\'d like to get some idea of how much work it will be. So[详细]
2023-01-28 05:12 分类:问答Compile subsection of Jinja2 AST
Can one compile or revert a portion of the Jinja2 AST? For example, is it possible to call a function or method from jinja2.environment or jinja2.compiler.generate开发者_高级运维 or some equivalent o[详细]
2023-01-27 07:02 分类:问答Jinja2 compile extension after includes
In Jinja2, is it possible to have a Node from the AST render after all include statements have completed?[详细]
2023-01-27 01:27 分类:问答How to force Jinja2 templates to recompile?
I\'m trying to switch Jinja2 template in the django app without restarting the application. Has anyone done this? Basically I need to force jinja2 to reload the templates once the skin selection cha[详细]
2023-01-25 11:20 分类:问答Jinja2 - Given 2 templates (as strings) how to render one that extends the other?
I\'m making a simple script that works on Jinja2 templates. Right now it\'s just reading files in from disk manually, i.e. no Jinja Loaders. I have 2 strings (A and B), representing 2 templates. I wan[详细]
2023-01-23 09:17 分类:问答How do I access part of a list in Jinja2
I\'m trying to use the jinja2 templating langauge to re开发者_JAVA百科turn the last n(say, 5) posts in my posts list:[详细]
2023-01-23 00:17 分类:问答raise an exception in jinja if we passed in a variable that is not present in the template
Is there a method for jinja2 to raise an exception when we pass a variable that is not present in the template开发者_Python百科?[详细]
2023-01-21 10:31 分类:问答How do I return a list as a variable in Python and use in Jinja2?
I am a very young programmer and I am trying to do something in Python but I\'m stuck. I have a list of users in Couchdb (using python couchdb library & Flask framework) who have a username (which[详细]
2023-01-20 16:29 分类:问答In Jinja2, how do you test if a variable is undefined?
Converting from Django, I\'m used to doing something like this: {% if n开发者_开发百科ot var1 %} {% endif %}[详细]
2023-01-18 05:07 分类:问答