Name

CatalystX::Usul::Model::Templates - Edit page templates

Version

0.1.$Revision: 1165 $

Synopsis

Description

CRUD methods for TT files

Configuration and Environment

Subroutines/Methods

create_or_update

$name = $c->model( q(Templates) )->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

delete

$c->model( q(Templates) )->delete( $namespace );

Deletes the template specified by the form parameter and the selected namespace

_get_template_data

$hashref = $c->model( q(Templates) )->_get_template_data( $namespace, $name );

Returns a hashref containing a list of template names and the content of the selected template

templates_view_form

$c->model( q(Templates) )->templates_view_form( $namespace, $name );

Calls "_get_template_data" and stash the data used to build the template editing form

Diagnostics

None

Dependencies

CatalystX::Usul::Model
CatalystX::Usul::Functions
TryCatch

Incompatibilities

There are no known incompatibilities in this module

Bugs and Limitations

There are no known bugs in this module. Please report problems to the address below. Patches are welcome

Acknowledgements

Larry Wall - For the Perl programming language

Author

Peter Flanigan, <Support at RoxSoft.co.uk>

License and Copyright

Copyright (c) 2010 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