Plack::Middleware::Debug::Template - storing profiling information on template use.
Version 1.00
To activate this panel:
plack_middlewares: Debug: - panels - - Template
Or in your app.psgi, something like:
builder { enable 'Debug', panels => ['Template']; $app; };
This middleware adds timers around calls to "process" in Template::Context to track the time spent rendering the template and the layout for the page.
Subclass this module and implement the below functions if you wish to change its behaviour.
Return true if the panel should show the path name rather than the template name, or false to have the path name in a title attribute.
This function can alter the full template path name provided to it for display.
If you don't want output for any particular template, test for it here. Return true to ignore.
You can look for information on GitHub at https://github.com/mysociety/Plack-Middleware-Debug-Template.
This module is based on a combination of Plack::Middleware::Debug::Dancer::TemplateTimer and Template::Timer.
Matthew Somerville, <matthew at mysociety.org>
<matthew at mysociety.org>
Copyright 2017 Matthew Somerville.
This library is free software; you can redistribute it and/or modify it under the terms of either the GNU Public License v3, or the Artistic License 2.0. See http://dev.perl.org/licenses/ for more information.
To install Plack::Middleware::Debug::Template, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Plack::Middleware::Debug::Template
CPAN shell
perl -MCPAN -e shell install Plack::Middleware::Debug::Template
For more information on module installation, please visit the detailed CPAN module installation guide.