[Zope] Parse variabel to page_template
Dieter Maurer
dieter@handshake.de
Thu, 5 Sep 2002 21:07:41 +0200
Oliver Marx writes:
> How do I parse a variable to a page_template.
You mean "pass" (not "parse").
You do it the same way you pass arguments to other functions.
"python: myPageTemplate(posarg1, posarg2, keyarg1=val1, keyarg2=val2,...)"
Inside the page template you find the arguments in the predefined
variable "options". It's "args" contains the sequence of
positional arguments. Keyword arguments are directly accessible
via their name.
Dieter