Plack::App::DataSection - psgi application for serving contents in data section
# create your module from directory. % dir2data_section.pl --dir=dir/ --module=Your::Module # generated module is like this. package Your::Module; use parent qw/Plack::App::DataSection/; __DATA__ @@ index.html <html> ... # app.psgi use Your::Module; Your::Module->new->to_app; # you can get contents in data section % curl http://localhost:5000/index.thml
Plack::App::DataSection is psgi application for serving contents in data section.
Inherit this module and you can easily create psgi application for serving contents in data section.
You can even serve binary contents!
Masayuki Matsuki <y.songmu@gmail.com>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Plack::App::DataSection, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Plack::App::DataSection
CPAN shell
perl -MCPAN -e shell install Plack::App::DataSection
For more information on module installation, please visit the detailed CPAN module installation guide.