Index: src/chameleon/zpt/template.txt =================================================================== --- src/chameleon/zpt/template.txt (revision 10606) +++ src/chameleon/zpt/template.txt (working copy) @@ -489,6 +489,53 @@ +A variable can refer to a value existing from outside a macro when +assigning. + + >>> macro = PageTemplate(""" + ... + ... + ... + ... + ...
+ ...
+ ... + ...
+ ...
+ ... + ...
+ ...
+ ... + ...
+ ...
+ ...
+ ... + ... + ... """) + + >>> template = PageTemplate(""" + ... + ... + ... + ... + ... + ... + ... """) + + >>> print template(macro=macro) + + +
bar
+
bar
+
bar
+
bar
+ + + Doctype declarations --------------------