NAME

CatalystX::CMS::View - base View class

SYNOPSIS

 package MyApp::View::CMS;
 use strict;
 use base qw( CatalystX::CMS::View );
 1;
 

DESCRIPTION

CatalystX::CMS::View isa Catalyst::View::TT class that handles dynamic include path generation and other CMS-related features.

VIRTUAL METHODS

CatalystX::CMS::View uses the Template::Plugin::Handy module to install additional vmethods in the global Template namespace.

METHODS

Only new or overridden method are documented here.

new

Overrides new() method to set INCLUDE_PATH to include all the paths in main app cms root config.

process

Overrides base method to test cmspage in stash and mangle the template value if it isa CatalystX::CMS::Page object.

template_vars

Override base method to set additional vars for render(), including:

  • CMS

  • additional_template_paths

AUTHOR

Peter Karman, <karman@cpan.org>

BUGS

Please report any bugs or feature requests to bug-catalystx-cms@rt.cpan.org, or through the web interface at http://rt.cpan.org. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

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.