Skip to content

Instantly share code, notes, and snippets.

@hdp
Created January 29, 2011 17:05
Show Gist options
  • Save hdp/801995 to your computer and use it in GitHub Desktop.
Save hdp/801995 to your computer and use it in GitHub Desktop.
use Plack::App::TemplateToolkit;
use Plack::App::File;
builder {
mount '/static' => Plack::App::File->new(
root => '/path/to/static/files',
)->to_app;
mount '/tt' => Plack::App::TemplateToolkit->new(
root => '/path/to/templates',
extension => '.tt',
)->to_app;
mount '/' => Plack::App::File->new(file => '/path/to/index.html');
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment