aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEdmund von der Burg <evdb@mysociety.org>2011-02-22 18:13:19 +0000
committerEdmund von der Burg <evdb@mysociety.org>2011-02-22 18:13:19 +0000
commitb0ea7a45ef55e01a911121f3e2785a01bb619505 (patch)
treeb012a694873406cd6a95e76c314553118e541b36
parent7a8cca0c2537f7cc7ccafdcc630e2080799b6c15 (diff)
Added template handling
-rw-r--r--perllib/FixMyStreet/App/View/Web.pm27
-rw-r--r--t/app/view_Web.t8
2 files changed, 35 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App/View/Web.pm b/perllib/FixMyStreet/App/View/Web.pm
new file mode 100644
index 000000000..0cb8e21b8
--- /dev/null
+++ b/perllib/FixMyStreet/App/View/Web.pm
@@ -0,0 +1,27 @@
+package FixMyStreet::App::View::Web;
+use base 'Catalyst::View::TT';
+
+use strict;
+use warnings;
+
+use FixMyStreet::App;
+
+__PACKAGE__->config(
+ TEMPLATE_EXTENSION => '.html',
+ INCLUDE_PATH => [ #
+ FixMyStreet::App->path_to( 'templates', 'web' ),
+ ],
+ render_die => 1,
+);
+
+=head1 NAME
+
+FixMyStreet::App::View::Web - TT View for FixMyStreet::App
+
+=head1 DESCRIPTION
+
+TT View for FixMyStreet::App.
+
+=cut
+
+1;
diff --git a/t/app/view_Web.t b/t/app/view_Web.t
new file mode 100644
index 000000000..0f49b986b
--- /dev/null
+++ b/t/app/view_Web.t
@@ -0,0 +1,8 @@
+use strict;
+use warnings;
+use Test::More;
+use Test::More;
+
+BEGIN { use_ok 'FixMyStreet::App::View::Web' }
+
+done_testing();