Catalyst::View::Text::Template - Text::Template views for Catalyst
version 0.011
The following __PACKAGE__->config() options are available:
__PACKAGE__->config()
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.
template
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.
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?
This is a quick bodge, and may change in lots of ways. You may want to wait for this warning to go away.
Text::Template
Ricardo Signes <rjbs@cpan.org>
Dean Hamstead <dean@fragfest.com.au>
This software is copyright (c) 2004 by Ricardo Signes.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Catalyst::View::Text::Template, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catalyst::View::Text::Template
CPAN shell
perl -MCPAN -e shell install Catalyst::View::Text::Template
For more information on module installation, please visit the detailed CPAN module installation guide.