App-CatalystStarter-Bloated
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
bin/catalyst-fatstart.pl view on Meta::CPAN
Also touches root/index.tt2 and root/wrapper.tt2. If wrapper.tt2 is
empty it inserts [% content %] in it.
=for Euclid:
HTML.opt_default: "HTML"
=item -[-]JSON [=] [<JSON>]
Add a Catalyst::View::JSON view, defaults to YourApp::View::JSON. The
same rules and options applies as to --TT
In addition to any defaults set by Catalyst::Helper, it also
configures:
export_stash => [ qw(json) ],
This means that only data in $c->stash->{json} will be included in
output. Remove this config line afterwards if you do not want it.
=for Euclid:
JSON.opt_default: "JSON"
=item -[-]html5 | -[-]h5
Set up a html5 template with twitter bootstrap and jquery downloaded
from http://www.initializr.com.
When downloaded it fills root/wrapper.tt2 with content from the
index.html from initializr.com and inserts [% content %] and puts
sample input in root/index.tt2.
=item -[-]views
Short hand for saying --TT and --JSON with default names
=item -[-]model [=] [<modelname>]
Package name to use for your model. If modelname not specified,
defaults to the catalyst name and "DB", ie "CatNameDB"
You can also put a dsn in here. It will then be reassigned to the
--dsn option, and the default model name will be used.
Note, *only* does DBIC::Schema. Do not use any of the model logic if
you do not want a DBIC::Schema model.
=for Euclid:
modelname.opt_default: "AppNameDB"
=item -[-]schema [=] <SchemaClass>
The name of the schema class to go with the dbic model. Defaults to
CatName::Schema, where CatName is the name of the catalyst app.
=item -[-]dsn [=] <dsn>
A DSN to set up a db connection for one model in your catalyst app.
If user and pass are not specified it will try the dsn without
credentials. Expects connection to succeed.
B<Important>: Will set --model and --schema with default names unless
they are also specified. Default names currently are CatNameDB and
CatName::Schema.
=item -[-][no]dsnfix
Checks and corrects the dsn input
Fixes case of known drivers, adds missing leading dbi:, tries to
verify and correct sqlite file paths, checks that hostnames can be resolved
=for Euclid:
false: --nodsnfix
=item -[-][no]pgpass
If set, will look in ~/.pgpass to complete dbi information.
Will currently only suplement the dsn if it finds a matching database
name.
It will set --dbuser and --dbpass as spropriate unless they are set.
=for Euclid:
false: --nopgpass
=item -[-]dbuser [=] <dbuser>
Username for the db connection.
=item -[-]dbpass [=] <dbpass>
Db for the db connection.
=item -[-]pgpass
Causes it to look through $HOME/.pgpass for credentials for postgresql
connections.
=item -[-][no]test
Run all tests when done
=for Euclid:
false: --notest
=item -[-]debug | -d
Set debug level for logging.
Currently there is no other interface to log level.
=item --verbose
Run more verbosely - shows stdout on all system calls made. Stderr is
always shown.
=item --version | -V
Prints version
=back
=head1 BUGS AND LIMITATIONS
There is a known bug related to how Getopt::Euclid handles
opt_default. If you use --TT without arguments, make sure its the last
argument on the command line
Please report any bugs or feature requests to
C<bug-app-catalyststarter-bloated@rt.cpan.org>, or through the web interface at
L<http://rt.cpan.org>.
=head1 AUTHOR
Torbjørn Lindahl C<< <torbjorn.lindahl@gmail.com> >>
=head1 LICENCE AND COPYRIGHT
Copyright (c) 2014, Torbjørn Lindahl C<< <torbjorn.lindahl@gmail.com> >>. All rights reserved.
This module is free software; you can redistribute it and/or
modify it under the same terms as Perl itself. See L<perlartistic>.
view all matches for this distributionview release on metacpan - search on metacpan
( run in 1.030 second using v1.00-cache-2.02-grep-82fe00e-cpan-2c419f77a38b )