From: "Larry Leszczynski" <[email protected]> > Hi Octavian - > >> > Is it possible to define a macro in a single place and access it in >> > all the templates? > > [cut] > >> Now I just need to find how I can include this in Catalyst... > > You should be able to put variables, MACROs and BLOCK definitions in a > file like "my_config_stuff.tt", and then do something like: > > MyApp->config->{'View::TT'}->{PRE_PROCESS} = 'my_config_stuff.tt'; > > > Larry
Thank you all for your answers. Using the PRE_PROCESS was the solution. Octavian _______________________________________________ templates mailing list [email protected] http://mail.template-toolkit.org/mailman/listinfo/templates
