Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Template Toolkit - Output Template Name / Filepath as HTML Comment

by codiac (Beadle)
on Jun 26, 2015 at 10:03 UTC ( #1132115=note: print w/replies, xml ) Need Help??


in reply to Template Toolkit - Output Template Name / Filepath as HTML Comment

If you are lucky you can add PROCESS to the Template config in Bugzilla/Template.pm and it will run when ever you put in there whenever it processes a template.

PROCESS => 'tricksy',

and make templates/en/default/tricksy

<!-- [% template.title %] --> [% PROCESS $template %]

If you are not lucky, then you will need to sub-class Template::Service and set $Template::Config::SERVICE = $mysubclass; before the Template is instantiated.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1132115]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (2)
As of 2023-10-03 14:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?