OpenInteract2::Controller::ManageTemplates - Mixin methods for managing templates
use base qw( OpenInteract2::Controller::ManageTemplates );
If a controller wants to keep track of templates used during a request it should add this class to its ISA.
init_templates()
Initializes the internal variable for tracking templates. Should be called from the init() method of the implementing class.
init()
add_template_used( $template_name )
Adds $template_name to the list of those used.
$template_name
get_templates_used()
Returns an arrayref of all template names used in they order they were added.
OpenInteract2::Controller
Copyright (c) 2002-2004 Chris Winters. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Chris Winters <chris@cwinters.com>
To install OpenInteract2::URL, copy and paste the appropriate command in to your terminal.
cpanm
cpanm OpenInteract2::URL
CPAN shell
perl -MCPAN -e shell install OpenInteract2::URL
For more information on module installation, please visit the detailed CPAN module installation guide.