Plack::App::Directory::Xslate - Serve static files and Text::Xslate template files from document root with directory index
# app.psgi use Plack::App::Directory::Xslate; my $app = Plack::App::Directory::Xslate->new({ root => "/path/to/htdocs", xslate_opt => +{ # Text::Xslate->new() syntax => 'TTerse', }, xslate_param => +{ hoge => 'fuga', }, xslate_path => qr{\.tt$}, })->to_app;
This is a static files and Text::Xslate template files server PSGI application with directory index a la Apache's mod_autoindex.
Document root directory. Defaults to the current directory.
Text::Xslate constructor option.
Allow Text::Xslate rendering path.
Text::Xslate rendering variables.
Kenta Sato E<lt>karupa@cpan.orgE<gt>
Plack::App::Directory Plack::App::File Plack::App::Xslate
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Plack::App::Directory::Xslate, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Plack::App::Directory::Xslate
CPAN shell
perl -MCPAN -e shell install Plack::App::Directory::Xslate
For more information on module installation, please visit the detailed CPAN module installation guide.