Le 08/02/2012 06:45, Craig Younkins a écrit :
Thanks Gordon, but I decided to use different control structures as an
easy solution. I'd like to see Jinja have a strict mode, where
unspecified variables raise exceptions instead of being automatically
set as None.

Hi,

Try this:

    app.jinja_env.undefined = jinja2.StrictUndefined

See http://jinja.pocoo.org/docs/api/#jinja2.StrictUndefined

Regards,
--
Simon Sapin

--
You received this message because you are subscribed to the Google Groups 
"pocoo-libs" 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/pocoo-libs?hl=en.

Reply via email to