iain duncan wrote:
> Is there any way to have kid template variables produce empty output
> instead of exceptions, a la Django templates? It's useful for
> dynamically adding css rules as css variables consisting of nothing fail
> nicely.

You can use this:
http://kid-templating.org/language.html#defined-name-and-value-of-name-default-functions

I.e. you would write ${value_of('var')} instead of ${var}.

-- Christoph

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

Reply via email to