I tried Template->new(PRE_PROCESS => 'template_name', ...) then put the [% template.name %] inside a file called template_name. That solved my problem.
On Mon, Jun 2, 2014 at 11:24 PM, Sherwood Botsford <[email protected]> wrote: > Generalize the problem: Have your main template INCLUDE a stub of a > file. Then anything that needs to be done for all files can happen there. > It doesn't make THIS round any easier, but it will make the next round > simpler. > > Most of my templates include header.inc at the start, then copywrite.inc > and footer.inc at the end. > > Respectfully, > > Sherwood of Sherwood's Forests > > Sherwood Botsford > Sherwood's Forests -- http://Sherwoods-Forests.com > 780-848-2548 > 50042 Range Rd 31 > Warburg, Alberta T0C 2T0 > > > > On 2 June 2014 03:57, Chankey Pathak <[email protected]> wrote: > >> In Template::Toolkit is there any way to show the template name in all >> html source automatically? This can be done by writing [% template.name >> %] in each file, but isn't there a global setting/way for this? >> >> _______________________________________________ >> templates mailing list >> [email protected] >> http://mail.template-toolkit.org/mailman/listinfo/templates >> >> > -- Regards, Chankey Pathak <http://www.linuxstall.com>
_______________________________________________ templates mailing list [email protected] http://mail.template-toolkit.org/mailman/listinfo/templates
