NAME

Catalyst::Helper - Bootstrap a Catalyst application

SYNOPSIS

See Catalyst::Manual::Intro

DESCRIPTION

Bootstrap a Catalyst application. Autogenerates scripts

METHODS

get_file

Slurp file from DATA.

mk_app

Create the main application skeleton.

mk_component

This method is called by create.pl to make new components for your application.

mk_dir

Surprisingly, this function makes a directory.

mk_file

writes content to a file.

next_test

render_file

Render and create a file from a template in DATA using Template Toolkit.

HELPERS

Helpers are classes that provide two methods.

* mk_compclass - creates the Component class
* mk_comptest  - creates the Component test

So when you call bin/create view MyView TT, create would try to execute Catalyst::Helper::View::TT->mk_compclass and Catalyst::Helper::View::TT->mk_comptest.

See Catalyst::Helper::View::TT and Catalyst::Helper::Model::CDBI for examples.

All helper classes should be under one of the following namespaces.

Catalyst::Helper::Model::
Catalyst::Helper::View::
Catalyst::Helper::Controller::

NOTE

The helpers will read author name from /etc/passwd by default. To override, please export the AUTHOR variable.

SEE ALSO

Catalyst::Manual, Catalyst::Test, Catalyst::Request, Catalyst::Response, Catalyst

AUTHOR

Sebastian Riedel, sri@oook.de

LICENSE

This library is free software . You can redistribute it and/or modify it under the same terms as perl itself.

NAME

[% name %] - Catalyst based application

SYNOPSIS

script/[% appprefix %]_server.pl

DESCRIPTION

Catalyst based application.

METHODS

default

AUTHOR

[%author%]

LICENSE

This library is free software . You can redistribute it and/or modify it under the same terms as perl itself.

NAME

cgi - Catalyst CGI

SYNOPSIS

See Catalyst::Manual

DESCRIPTION

Run a Catalyst application as cgi.

AUTHOR

Sebastian Riedel, sri@oook.de

COPYRIGHT

Copyright 2004 Sebastian Riedel. All rights reserved.

This library is free software. You can redistribute it and/or modify it under the same terms as perl itself.

NAME

fastcgi - Catalyst FastCGI

SYNOPSIS

See Catalyst::Manual

DESCRIPTION

Run a Catalyst application as fastcgi.

AUTHOR

Sebastian Riedel, sri@oook.de

COPYRIGHT

Copyright 2004 Sebastian Riedel. All rights reserved.

This library is free software. You can redistribute it and/or modify it under the same terms as perl itself.

NAME

server - Catalyst Testserver

SYNOPSIS

server.pl [options]

Options:
  -? -help    display this help and exits
  -p -port    port (defaults to 3000)

See also:
  perldoc Catalyst::Manual
  perldoc Catalyst::Manual::Intro

DESCRIPTION

Run a Catalyst Testserver for this application.

AUTHOR

Sebastian Riedel, sri@oook.de

COPYRIGHT

Copyright 2004 Sebastian Riedel. All rights reserved.

This library is free software. You can redistribute it and/or modify it under the same terms as perl itself.

NAME

test - Catalyst Test

SYNOPSIS

test.pl [options] uri

Options:
  -help    display this help and exits

Examples:
  test.pl http://localhost/some_action
  test.pl /some_action

See also:
  perldoc Catalyst::Manual
  perldoc Catalyst::Manual::Intro

DESCRIPTION

Run a Catalyst action from the comand line.

AUTHOR

Sebastian Riedel, sri@oook.de

COPYRIGHT

Copyright 2004 Sebastian Riedel. All rights reserved.

This library is free software. You can redistribute it and/or modify it under the same terms as perl itself.

NAME

create - Create a new Catalyst Component

SYNOPSIS

create.pl [options] model|view|controller name [helper] [options]

Options:
  -help    display this help and exits

Examples:
  create.pl controller My::Controller
  create.pl view My::View
  create.pl view MyView TT
  create.pl view TT TT
  create.pl model My::Model
  create.pl model SomeDB CDBI dbi:SQLite:/tmp/my.db
  create.pl model AnotherDB CDBI dbi:Pg:dbname=foo root 4321

See also:
  perldoc Catalyst::Manual
  perldoc Catalyst::Manual::Intro

DESCRIPTION

Create a new Catalyst Component.

AUTHOR

Sebastian Riedel, sri\@oook.de

COPYRIGHT

Copyright 2004 Sebastian Riedel. All rights reserved.

This library is free software. You can redistribute it and/or modify it under the same terms as perl itself.

NAME

[% class %] - Catalyst component

SYNOPSIS

See "[% app %]"

DESCRIPTION

Catalyst component. [% IF type == 'C' %] =head1 METHODS

default

[% END %] =head1 AUTHOR

[%author%]

LICENSE

This library is free software . You can redistribute it and/or modify it under the same terms as perl itself.