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