Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

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

by petdance (Parson)
on Jun 29, 2015 at 18:32 UTC ( [id://1132505]=note: print w/replies, xml ) Need Help??


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

You may want to take a look at my Template::Timer module. Template-Timer

It gives you output like this in your HTML:

<!-- TIMER START: L1 process mainmenu/mainmenu.tt --> <!-- TIMER START: L2 include mainmenu/cssindex.tt --> <!-- TIMER START: L3 process mainmenu/cssindex.tt --> <!-- TIMER END: L3 process mainmenu/cssindex.tt (17.279 ms) --> <!-- TIMER END: L2 include mainmenu/cssindex.tt (17.401 ms) --> .... <!-- TIMER END: L3 process mainmenu/footer.tt (3.016 ms) --> <!-- TIMER END: L2 include mainmenu/footer.tt (3.104 ms) --> <!-- TIMER END: L1 process mainmenu/mainmenu.tt (400.409 ms) -->

I know you didn't ask for timings, but at least it shows nesting levels.

xoxo,
Andy

  • Comment on Re: Template Toolkit - Output Template Name / Filepath as HTML Comment
  • Download Code

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2024-04-18 15:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found