Hey guys

However every other operatation raises an UndefinedError.

In certain usage cases it might be good to disable raising an UndefinedError
when an app is deployed for production. This is very similar to PHP where
the app continues serving even though there might be errors.

Is it possible to disable raising UndefinedError or gracefully try to load a
page even in errors during production

thanks


   - *Improved behavior of undefined values*. Jinja1 had a very silent
   undefined behavior. If a variable was undefined you were able to call it
   without getting errors or access any attribute. Jinja2 ships three undefined
   types that make it easier to debug templates. The default undefined types
   allows you to print the undefined variables (which when printed outputs
   nothing) and loop over it (works like iterating over an empty list). However
   every other operatation raises an UndefinedError. Additionally there an
   undefined type with the same behavior but it prints the name of the variable
   or attribute missing if it’s printed. The third builtin undefined type is
   the strict type which doesn’t allow any operation except of testing if it’s
   undefined which is the closest you can get to the default Python behavior.




-- 
Amazing wedding entrance viral video
http://fotoroll.com/sv?q=jk%20wedding%20entrance%20dance%20Amazing%20wedding%20video

-- 
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