NAME

Plack::Middleware::TMT - Text::MicroTemplate on the Plack

SYNOPSIS

enable 'TMT',
    include_path => 'tmpl';

support few options

enable 'TMT',
    include_path   => 'tmpl',
    tmpl_extension => '.mt',
    pass_through   => 1,
    macro => +{
        hello => sub { 'hello!' },
    };

DESCRIPTION

you can write some perl codes in template files. it sounds evil. you can use this module for test or micro app with yourself.

REPOSITORY

Plack::Middleware::TMT is hosted on github <http://github.com/bayashi/Plack-Middleware-TMT>

AUTHOR

Dai Okabayashi <bayashi@cpan.org>

SEE ALSO

Text::MicroTemplate::File, Text::MicroTemplate

LICENSE

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.