30 Jul
2001
30 Jul
'01
1:38 p.m.
Dirksen wrote:
How to call PageTemplate from python script? And how to pass arguments? How to access these arguments in PageTemplate? Please show me an example.
Page Templates can be called normally, with no magic arguments. If you pass keyword arguments, you can access them using the 'options' variable:
return test_zpt(header='abc')
text_zpt: <p tal:content="options/header">dummy</p>
Cheers, Evan @ 4-am & Zope