Hello! I'm new with TT, and was hoping to do something like the following:
in "blah.tt": [% SET display_template = 'bar.tt' %] [% PROCESS foo.tt %] then later on, in "foo.tt": [% PROCESS display_template %] but that's not working - process tries to look for 'display_template' as a file, rather than first interpolating it as a variable, and thereby processing "bar.tt". How do I achieve this? The point is to reuse 'foo.tt' - but at one point it needs to dynamically load a template, depending on the 'display_template' variable that was set earlier in the originating caller template ( "blah.tt" ). Many thanks! _______________________________________________ templates mailing list [email protected] http://lists.template-toolkit.org/mailman/listinfo/templates
