NAME

Response SimpleTemplate - Simple templating view plugin

SYNOPSIS

my $response = $mungo->getResponse();
$response->setTemplateVar("hello", $something);

DESCRIPTION

This view plugin allows you to read a template file and replace placholders with scalar variables.

METHODS

Notes

If an error occurs a template called "genericerror.html" will be used instead of the specified template. Please make sure you have this file, there is an example of this in the "root/templates" directory of this module.

To change the template location use the following code at the top of your script:

$CGI::Mungo::Response::SimpleTemplate::templateLoc = "../root";

Author

MacGyveR <dumb@cpan.org>

Development questions, bug reports, and patches are welcome to the above address

Copyright

Copyright (c) 2009 MacGyveR. All rights reserved.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.