Peter Flanigan > CatalystX-Usul-0.17.1 > CatalystX::Usul::Model::Templates

Download:
catalystx-usul/CatalystX-Usul-0.17.1.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

Open  0
View/Report Bugs
Module Version: v0.17.1   Source  

Name ^

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

Version ^

v0.10.$Rev: 1 $

Synopsis ^

   package YourApp;

   use Catalyst qw(ConfigComponents...);

   __PACKAGE__->config( 'Model::Templates' => {
      parent_classes => 'CatalystX::Usul::Model::Templates' } );

Description ^

CRUD methods for Template::Toolkit files

Configuration and Environment ^

Defines the following list of attributes

blank_ns

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

escape_chars

An array ref of non-empty simple strings. Pair of fencepost characters used to replace [ and ] when escaping Template::Toolkit templates

extension

A non-empty simple string which defaults to .tt

ns_key

A non-empty simple string which defaults to namespace

root_ns

A non-empty simple string which defaults to root

Subroutines/Methods ^

build_per_context_instance

Instantiates the query object. Returns a clone of the model object

create_or_update

   $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

delete

   $c->self->delete( $namespace );

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

_get_template_data

   $hashref = $self->_get_template_data( $namespace, $name );

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

templates_view_form

   $self->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::TraitFor::Model::QueryingRequest
CatalystX::Usul::TraitFor::Model::StashHelper
Class::Usul::File
CatalystX::Usul::Moose

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) 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

syntax highlighting: