To add to other answers - while using Mako I sometimes implement default
rendering like this:
<div>${variable *or* '*some default value*'}</div>
So, if variable is None, *some default value* is rendered. Don't know if
this will work with Chameleon though.
--
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/pylons-discuss/-/hOXtvFwSk5YJ.
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.