On 20 Sie, 19:25, Mike Orr <[email protected]> wrote: > The line in environment.py should be: > > config['pylons.app_globals'].jinja_env = ...
Thanks for your answer Mike. The cause is - as usual - a STUPID mistake/typo which i copied from the docs yet should have found by myself at first sight. This line you mentioned should be: > config['pylons.app_globals'].jinja2_env = ... render_template looks for jinja2_env attribute, not jinja_env. Jinja2 works like a charm now and, curiously, it seems insanely fast comparing to Mako, tough I haven't ran any benchmark. On the other hand, it's good that I asked here, cause there's no way I would later come to this by myself: > > Also, if you're using Pylons 1.0, the ``config['pylons.strict_c']`` on > the Jinja2 page is now ``config['pylons.strict_tmpl_context']``. Very useful advice, thank you so much! -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
