--On 9. August 2005 21:37:11 -0400 Dyyryath [EMAIL PROTECTED]
wrote:
I'm trying to figure out how I can change the properties of a template
with ZPT. For example, let's say I've got a Page Template with a
property called 'name' and I want to change it in response to something
in the HTTP
Thanks for the reply, Andreas.
Actually, I probably didn't properly explain my question. I do realize
that the template is an object and that all I need to do is access the
template's API to modify it's properties (though, I admit I'm a newbie
here).
My problem is that the only way I can find
Am Mittwoch, 10. August 2005 16:31 schrieb Dyyryath:
An example is probably in order. Take the following code:
div tal:content=template/titleTITLE HERE/div
div tal:content=python:context.titleTITLE HERE/div
why not using the same name in the python expression? :-)
div tal:content=python:
I'm trying to figure out how I can change the properties of a template
with ZPT. For example, let's say I've got a Page Template with a
property called 'name' and I want to change it in response to something
in the HTTP request:
div tal:condition=python:'name' in context.REQUEST
SOME CODE TO