| CatalystX-CMS documentation | Contained in the CatalystX-CMS distribution. |
Catalyst::Helper::Model::CMS - Helper for CatalystX::CMS::Model
script/create.pl model CMS CMS
Helper for CatalystX::CMS::Model.
Makes a CatalystX::CMS::Model class for you.
Makes tests.
Catalyst::Manual, Catalyst::Test, Catalyst::Request, Catalyst::Response, Catalyst::Helper, CatalystX::CMS::Model
Peter Karman <karman@cpan.org>
This library is free software . You can redistribute it and/or modify it under the same terms as perl itself.
| CatalystX-CMS documentation | Contained in the CatalystX-CMS distribution. |
package Catalyst::Helper::Model::CMS; use strict; use File::Spec;
sub mk_compclass { my ( $self, $helper ) = @_; $helper->render_file( 'cmsclass', $helper->{file} ); } sub mk_comptest { my ( $self, $helper ) = @_; $helper->render_file( 'cmstest', $helper->{test} ); }
1; __DATA__
1; __cmstest__ use Test::More tests => 2; use_ok( Catalyst::Test, '[% app %]' ); use_ok('[% class %]');