Ricardo SIGNES > Catalyst-View-Text-Template > Catalyst::View::Text::Template

Download:
Catalyst-View-Text-Template-0.011.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.011   Source  

NAME ^

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

VERSION ^

version 0.011

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?

WARNING ^

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

SEE ALSO ^

Text::Template

AUTHORS ^

COPYRIGHT AND LICENSE ^

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.

syntax highlighting: