diff options
| author | franck cuny <franck@lumberjaph.net> | 2010-04-14 10:37:41 +0200 |
|---|---|---|
| committer | franck cuny <franck@lumberjaph.net> | 2010-04-14 10:37:41 +0200 |
| commit | 2c6fba1c069f471913dd3b684497ff38eda347f7 (patch) | |
| tree | 5ba52046bf9150ae49e449631d8e8664728cb1b0 /app.psgi | |
| parent | basic REST job queue using tatsumaki + redis (diff) | |
| download | presque-2c6fba1c069f471913dd3b684497ff38eda347f7.tar.gz | |
add templates and static dirs
Diffstat (limited to '')
| -rw-r--r-- | app.psgi | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -2,10 +2,15 @@ use strict; use warnings; use lib ('lib'); - +use File::Basename; use presque; use Plack::Builder; use YAML::Syck; my $conf = LoadFile('conf.yaml'); my $app = presque->app( config => $conf ); + +$app->template_path(dirname(__FILE__) . "/templates"); +$app->static_path(dirname(__FILE__) . "/static"); + +$app; |
