5 Sep
2002
5 Sep
'02
7:07 p.m.
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