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

NAME

Catalyst::View::Text::Template - Text::Template views for Catalyst

WARNING

This is a quick bodge, and may change in lots of ways. You may want to wait for this warning to go away.

SYNOPSIS

The following __PACKAGE__->config() options are available:

TEMPLATE_EXTENSION

This works as per its namesake in Catalyst::View::TT in that it provides the extension for autogenerated template filenames. If there is no template variable in the stash, the action name and this parameter are concatenated to create the default template file name.

BROKEN, BROKEN_ARG, SAFE, DELIMITERS, PREPEND, SAFE

These config variables work as per their descriptions in the Text::Template documentation. No attempt is made to sanitize them, they are passed straight through as is.

HASH

Values in this config variable will always be included in the templates HASH allow with the Catalyst stash values. It has lower precedence than the stash values, so duplicate names will be overridge by the stash.

This is intended for convenience in adding in useful helper functions or variables that you might use frequently and which seem to been more correcly placed in the view rather than stuffed in the stash via the Controller. Perhaps you might place a function to escape html, a list of states or countries?

SEE ALSO

Text::Template

AUTHOR

Ricardo SIGNES, <rjbs at cpan.org>

BUGS

Please report any bugs or feature requests through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Catalyst-View-Text-Template. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

COPYRIGHT & LICENSE

Copyright 2009 Ricardo SIGNES.

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