How is a MACRO different from just having a separate file which is included? Can't you pass parameters to INCLUDE?
Drew At 12:54 PM 4/24/02 -0400, Perrin Harkins wrote: >Use a macro. > >Have your main program look up that data before running the template and >pass it in as part of the template data. Then make a macro for dropdowns, >which accepts a parameter of the data to display. > >[% MACRO dropdown %] > [% FOREACH option = options %] > <option value="[% option.id %]">[% option.name %]</option> > [% END %] >[% END %] > >[% INCLUDE dropdown options=months %] ====================================================================== Drew Taylor JA[P|m_p]H http://www.drewtaylor.com/ Just Another Perl|mod_perl Hacker mailto:[EMAIL PROTECTED] *** God bless America! *** ---------------------------------------------------------------------- Speakeasy.net: A DSL provider with a clue. Sign up today. http://www.speakeasy.net/refer/29655 ======================================================================
