NAME

Catalyst::View::MicroTemplate - Text::MicroTemplate View For Catalyst

SYNOPSIS

# 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
    

DESCRIPTION

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.

AUTHORS

Daisuke Maki <daisuke@endeworks.jp>

LICENSE

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