Catalyst::View::MicroTemplate - Text::MicroTemplate View For Catalyst
# MyApp::View::MicroTemplate package MyApp::View::MicroTemplate; use strict; use base qw(Catalyst::View::MicroTemplate); # in your config <View::MicroTemplate> content_type text/html # added to header charset UTF-8 # added to header inlucde_path __path_to(root)__ include_path /path/to/include/path template_suffix .mt # default <template_args> foo bar # $foo will be available in the template </template_args> </View::MicroTemplate> # same thing in YAML 'View::MicroTemplate': content_type: text/html charset: UTF-8 include_path: - __path_to(root)__ - /path/to/include/path template_args: foo: bar template_suffix: .mt
This is a Text::MicroTemplate view for Catalyst.
Text::MicroTemplate is based on Mojo::Template, and it's aimed for speed and efficiency. In thismodule we use Text::MicroTemplate::Extended, as it allows a more realistic usage for applications.
Daisuke Maki <daisuke@endeworks.jp>
<daisuke@endeworks.jp>
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See http://www.perl.com/perl/misc/Artistic.html
To install Catalyst::View::MicroTemplate, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catalyst::View::MicroTemplate
CPAN shell
perl -MCPAN -e shell install Catalyst::View::MicroTemplate
For more information on module installation, please visit the detailed CPAN module installation guide.