Behavior on non definded name in Cheetah
Stephan Diehl
stephan.diehl at gmx.net
Wed Aug 2 05:59:43 EDT 2006
Paolo Pantaleo wrote:
> [I hope I am posting to the right place]
>
> I have a cheetah template something like this:
>
> x is: $x
> y is: $y
> z is: $z
>
> [Actually more complicated]
>
> If for example $y is not defined I get an exception and the parsing
> of the template stops. Is there any way to substitute $y with an emty
> string and making cheeta going on with parsing?
>
> Thnx
> PAolo
>
http://cheetahtemplate.org/docs/users_guide_html_multipage/language.namemapper.missing.html
More information about the Python-list
mailing list