On Tue, Feb 22, 2011 at 7:14 PM, Summer <[email protected]> wrote: > > but I can reduce my code by a huge amount if I can somehow PROCESS call to > the string that comes in IF my string is the same name as my BLOCK.. ala. > > PROCESS eval($someVAL) > > does that make sense? this way I can name my blocks the same as the > "someVals" across my site and just process to it? >
http://www.template-toolkit.org/docs/manual/Directives.html#section_PROCESS ... A $ prefix can be used to explicitly indicate a variable which should be interpolated to provide the template name: [% myheader = 'my/misc/header' %] [% PROCESS myheader %] # 'myheader' [% PROCESS $myheader %] # 'my/misc/header' Ronald _______________________________________________ templates mailing list [email protected] http://mail.template-toolkit.org/mailman/listinfo/templates
