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 implementing class's init() method.

add_template_used( $template_name )

Adds $template_name to the list of those used.

get_template_used()

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

BUGS

None known.

TO DO

Nothing known.

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>