NAME
Rose::DBx::Garden::Catalyst::View - base View class
DESCRIPTION
Rose::DBx::Garden::Catalyst::View is a subclass of Catalyst::View::TT.
CONFIGURATION
Configuration is the same as with Catalyst::View::TT. Read those docs.
The default config here is:
__PACKAGE__->config(
TEMPLATE_EXTENSION => '.tt',
PRE_PROCESS => 'rdgc/tt_config.tt',
WRAPPER => 'rdgc/wrapper.tt',
);
METHODS
The following methods are implemented in this class:
new
Overrides base new() method. Sets INCLUDE_PATH to the base Rose::DBx::Garden::Catalyst::TT .tt files plus your local app root. This means you can override the default .tt behaviour by putting a .tt file with the same name in your root
template dir.
For example, to customize your wrapper.tt
file, just copy the default one from the Rose/DBx/Garden/Catalyst/TT/rdgc/wrapper.tt
in @INC and put it in root/rdgc/wrapper.tt
. Likewise, you can set up a global config file by creating a root/rdgc/tt_config.tt
file and putting your MACROs and other TT stuff in there.
template_vars
Overrides base method to add some other default variables.
The
yui
variable is a Rose::DBx::Garden::Catalyst::YUI object.The
page
variable is a hashref with members js and css. It is used by rdgc/page_head_maker.tt to ease the addition of per-request .js and .css files. Stuff the base file name into the array in each .tt file to get those files included in the page header.The
static_url
variable defaults to $c->uri_for('/static'). You can override that in $c->config() by setting a 'static_url' value to whatever base URL you wish. Ideal for serving your static content from different URL than your dynamic content.
AUTHOR
Peter Karman, <karman at cpan.org>
BUGS
Please report any bugs or feature requests to bug-rose-dbx-garden-catalyst at rt.cpan.org
, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Rose-DBx-Garden-Catalyst. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Rose::DBx::Garden::Catalyst
You can also look for information at:
AnnoCPAN: Annotated CPAN documentation
CPAN Ratings
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Rose-DBx-Garden-Catalyst
Search CPAN
ACKNOWLEDGEMENTS
The Minnesota Supercomputing Institute http://www.msi.umn.edu/
sponsored the development of this software.
COPYRIGHT & LICENSE
Copyright 2008 by the Regents of the University of Minnesota.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.