The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

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.

SYNOPSIS

# 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...

DESCRIPTION

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.

METHODS

mk_compclass

Generates the component class.

mk_templates

Generates the templates.

SEE ALSO

Catalyst, Catalyst::View::TT, Catalyst::Helper, Catalyst::Helper::View::TT

AUTHOR

Lucas Smith <lsmith@lucas.e.smith@gmail.com>

LICENSE

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

NAME

[% class %] - Catalyst TT::Bootstrap View

SYNOPSIS

See "[% app %]"

DESCRIPTION

Catalyst TT::Bootstrap View.

AUTHOR

[% author %]

LICENSE

This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.