From 2c6fba1c069f471913dd3b684497ff38eda347f7 Mon Sep 17 00:00:00 2001 From: franck cuny Date: Wed, 14 Apr 2010 10:37:41 +0200 Subject: add templates and static dirs --- app.psgi | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app.psgi b/app.psgi index 9473ea3..36435ec 100644 --- a/app.psgi +++ b/app.psgi @@ -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; -- cgit 1.4.1