Re: Global setting to show template name in each HTML source

Nigel Metheringham <[email protected]> Tue, 03 Jun 2014 09:17:04 +0100
Newsgroups gmane.comp.lang.perl.modules.template-toolkit
Message-ID <[email protected]>

Chankey Pathak 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?

Do you mean visible within the rendered HTML, or just embedded in the 
output - maybe as comments?

If the latter, maybe the simplest solution is Template::Timer - 
https://metacpan.org/pod/Template::Timer

If you are using Catalyst then Catalyst::View::TT has magic to do this 
already - https://metacpan.org/pod/Catalyst::View::TT

	Nigel.

-- 
[ Nigel Metheringham ------------------------------ [email protected] ]
[                 Ellipsis Intangible Technologies                  ]