The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

OpenInteract2::Controller::ManageTemplates - Mixin methods for managing templates

SYNOPSIS

 use base qw( OpenInteract2::Controller::ManageTemplates );

DESCRIPTION

If a controller wants to keep track of templates used during a request it should add this class to its ISA.

METHODS

init_templates()

Initializes the internal variable for tracking templates. Should be called from the init() method of the implementing class.

add_template_used( $template_name )

Adds $template_name to the list of those used.

get_templates_used()

Returns an arrayref of all template names used in they order they were added.

SEE ALSO

OpenInteract2::Controller

COPYRIGHT

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.

AUTHORS

Chris Winters <chris@cwinters.com>