On Mon, Mar 7, 2011 at 9:56 AM, Hackworth, Keith A <[email protected]> wrote: > Is it possible to call a macro using a variable name? For example: > > [% MACRO a BLOCK %]do a stuff[% END %] > [% MACRO b BLOCK %]do b stuff[% END %] > > [% routine = ‘b’ %] > [%$routine(option=’blah’) %] - I’m not sure how to make this call
Try this: [% $routine(option='blah') %] ;) Ronald _______________________________________________ templates mailing list [email protected] http://mail.template-toolkit.org/mailman/listinfo/templates
