NAME

Plack::App::SourceViewer - The Source Code Viewer for Plack

SYNOPSIS

   use Plack::App::SourceViewer;
   my $app = Plack::App::SourceViewer->new(root => "./lib")->to_app;

   # Or map the path to a specific file
   use Plack::Builder;
   builder {
       mount "/source" => Plack::App::SourceViewer->new(root => './lib')->to_app;
       mount "/"       => sub { [200, [], ["OK"]] };
   };

DESCRIPTION

Plack::App::SourceViewer provides the viewer of source code as HTML.

METHODS

prepare_app

call

REPOSITORY

Plack::App::SourceViewer is hosted on github: http://github.com/bayashi/Plack-App-SourceViewer

I appreciate any feedback :D

AUTHOR

Dai Okabayashi <bayashi@cpan.org>

SEE ALSO

Syntax::Highlight::Engine::Kate

LICENSE

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