Catalyst::Helper::View::TT::Bootstrap - Helper for TT view. Creates the View/TT.pm and a template directory structure under MyApp/root containing templates, macros, and a base stylesheet to facilitate getting to the meat of building your app's pages sooner than later.
# use the helper to create the view module and templates
$ script/myapp_create.pl view TT TT::Bootstrap
# add something like the following to the page templates for your application [% page.layout = '2columns'; # use a 2 column layout page.header = 'my_custom'; # will load root/site/header/my_custom.tt page.footer = 'none'; # don't display a footer
# adds these <link rel="stylsheet"...> tags to the <head> page.head.stylesheets.push('foo.css','bar.css'); # adds these <script> tags to the <head> page.head.scripts.push('foo.js','bar.js'); # adds these <script> tags to the bottom of the <body> -- usually preferable page.body.scripts.push('baz.js','poop.js'); # adds these classes to the <body> tag page.body.classes.push('foo','bar'); %] ...your content here...
This helper module creates a TT View module. It also creates a set of templates, macros, and a stylesheet to let you focus on the content of your apps pages sooner.
The View/TT.pm module created is configured to work within the generated template structure.
See Catalyst::Helper::View::TT::Bootstrap::Manual for more details on available variables and macros, and how to work with the layouts.
Generates the component class.
Generates the templates.
Catalyst, Catalyst::View::TT, Catalyst::Helper, Catalyst::Helper::View::TT
Lucas Smith <lsmith@lucas.e.smith@gmail.com>
This library is free software . You can redistribute it and/or modify it under the same terms as perl itself.
[% class %] - Catalyst TT::Bootstrap View
See "[% app %]"
Catalyst TT::Bootstrap View.
[% author %]
This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
To install Catalyst::Helper::View::TT::Bootstrap, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catalyst::Helper::View::TT::Bootstrap
CPAN shell
perl -MCPAN -e shell install Catalyst::Helper::View::TT::Bootstrap
For more information on module installation, please visit the detailed CPAN module installation guide.