>>>>> "Andy" == Andy Wardley <[EMAIL PROTECTED]> writes:

Andy> And now for the MACRO:

Andy>   [% MACRO mm(list) INCLUDE mm %]

Andy>   [% mm( ["hello", ["world", "we", ["do", "see"], "really"], "smartly"]) %]
Andy>   [% mm( ["hello", ["world", "we", ["do", "see"], "really"], "smartly"],
Andy>          separator = "," ) 
Andy>   %]
Andy>   [% mm( ["hello", ["world", "we", ["do", "see"], "really"], "smartly"]
Andy>          separator = ","
Andy>          list_prefix = "("
Andy>          list_suffix = ")" ) 
Andy>   %]

I wanted to do that, but didn't know that you could pass localized named
arguments into the list.  So I fell back on the INCLUDE instead.

That's the problem with far too many different interfaces.  I'm really
looking forward to your unified approach in 3.0 which merges filters,
macros, and blocks nicely.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to