On 11/08/2011, at 5:13 AM, Francisco Obispo wrote: > Look at the INCLUDE directive in perldoc Template::Manual::Directives > > INCLUDE > The "INCLUDE" directive is used to process and include the output of > another template file or block. > > [% INCLUDE header %] > >
You should usually PROCESS not INCLUDE as there's no copying of variables during processing, so it's faster: https://metacpan.org/module/Template::Manual::Directives#PROCESS > > > On Aug 10, 2011, at 12:00 PM, Stefan wrote: > >> Hi, >> I’m new at the catalyst framework and using Template Toolkit. >> >> What is the best practice to load a template like the following: >> >> <html> >> <body> >> <div class“left“> >> [% content %] >> </div> >> <div class“right“> >> [% right_content %] >> </div> >> </body> >> </html> >> >> ‚content‘ should be replaced with left_content.tt2 >> ‚right_content‘ with right_content.tt2 >> >> If I use a Wrapper, only content is automatically replaced. How can I also >> replace right_content? >> >> Thanks for your Help!! >> Stefan >> _______________________________________________ >> List: [email protected] >> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst >> Searchable archive: http://www.mail-archive.com/[email protected]/ >> Dev site: http://dev.catalyst.perl.org/ > > Francisco Obispo > email: [email protected] > Phone: +1 650 423 1374 || INOC-DBA *3557* NOC > Key fingerprint = 532F 84EB 06B4 3806 D5FA 09C6 463E 614E B38D B1BE > > > > > > > _______________________________________________ > List: [email protected] > Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst > Searchable archive: http://www.mail-archive.com/[email protected]/ > Dev site: http://dev.catalyst.perl.org/ _______________________________________________ List: [email protected] Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[email protected]/ Dev site: http://dev.catalyst.perl.org/
