1MOJOMOJO_CREATE(1) User Contributed Perl Documentation MOJOMOJO_CREATE(1)
2
3
4
6 mojomojo_create.pl - Create a new Catalyst Component
7
9 mojomojo_create.pl [options] model|view|controller name [helper]
10 [options]
11
12 Options:
13 -force don't create a .new file where a file to be created exists
14 -mechanize use Test::WWW::Mechanize::Catalyst for tests if available
15 -help display this help and exits
16
17 Examples:
18 mojomojo_create.pl controller My::Controller
19 mojomojo_create.pl -mechanize controller My::Controller
20 mojomojo_create.pl view My::View
21 mojomojo_create.pl view MyView TT
22 mojomojo_create.pl view TT TT
23 mojomojo_create.pl model My::Model
24 mojomojo_create.pl model SomeDB DBIC::Schema MyApp::Schema create=dynamic\
25 dbi:SQLite:/tmp/my.db
26 mojomojo_create.pl model AnotherDB DBIC::Schema MyApp::Schema create=static\
27 dbi:Pg:dbname=foo root 4321
28
29 See also:
30 perldoc Catalyst::Manual
31 perldoc Catalyst::Manual::Intro
32
34 Create a new Catalyst Component.
35
36 Existing component files are not overwritten. If any of the component
37 files to be created already exist the file will be written with a
38 '.new' suffix. This behavior can be suppressed with the "-force"
39 option.
40
42 Catalyst Contributors, see Catalyst.pm
43
45 You may distribute this code under the same terms as Perl itself.
46
48 Please refer to Catalyst.pm for copyright details.
49
50
51
52perl v5.12.1 2010-05-08 MOJOMOJO_CREATE(1)