CatalystX::Usul::Model::Templates - Edit page templates
v0.10.$Rev: 1 $
package YourApp; use Catalyst qw(ConfigComponents...); __PACKAGE__->config( 'Model::Templates' => { parent_classes => 'CatalystX::Usul::Model::Templates' } );
CRUD methods for Template::Toolkit files
Defines the following list of attributes
A non-empty simple string which defaults to none. A marker to indicate an application wide template. One that does not belong to a specific namespace
none
An array ref of non-empty simple strings. Pair of fencepost characters used to replace [ and ] when escaping Template::Toolkit templates
[
]
A non-empty simple string which defaults to .tt
A non-empty simple string which defaults to namespace
namespace
A non-empty simple string which defaults to root
root
Instantiates the query object. Returns a clone of the model object
$name = $self->create_or_update( $namespace );
Transforms $namespace into the path to the template directory. Gets the template from the form. Writes the form content to the selected template file and returns the template name
$namespace
$c->self->delete( $namespace );
Deletes the template specified by the form parameter and the selected namespace
$hashref = $self->_get_template_data( $namespace, $name );
Returns a hashref containing a list of template names and the content of the selected template
$self->templates_view_form( $namespace, $name );
Calls "_get_template_data" and stash the data used to build the template editing form
None
There are no known incompatibilities in this module
There are no known bugs in this module. Please report problems to the address below. Patches are welcome
Larry Wall - For the Perl programming language
Peter Flanigan, <Support at RoxSoft.co.uk>
<Support at RoxSoft.co.uk>
Copyright (c) 2014 Peter Flanigan. All rights reserved
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic
This program is distributed in the hope that it will be useful, but WITHOUT WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE
To install CatalystX::Usul, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CatalystX::Usul
CPAN shell
perl -MCPAN -e shell install CatalystX::Usul
For more information on module installation, please visit the detailed CPAN module installation guide.