NAME

Plack::Middleware::Debug::Template - storing profiling information on template use.

Screenshot of template debug panel

VERSION

1.00

SYNOPSIS

To activate this panel:

plack_middlewares:
  Debug:
    - panels
    -
      - Template

Or in your app.psgi, something like:

builder {
    enable 'Debug', panels => ['Template'];
    $app;
};

DESCRIPTION

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.

HOOKS

Subclass this module and implement the below functions if you wish to change its behaviour.

SUPPORT

You can look for information on GitHub at https://github.com/mysociety/Plack-Middleware-Debug-Template.

ACKNOWLEDGEMENTS

This module is based on a combination of Plack::Middleware::Debug::Dancer::TemplateTimer and Template::Timer.

AUTHOR

Matthew Somerville, <matthew at mysociety.org>

LICENSE AND COPYRIGHT

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.