Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Created View::HTML and set the component path

  • Loading branch information...
commit 33a252704b965c93847905ba4922ea1f5e91cf6a 1 parent 7528af6
Phillip Smith authored August 15, 2011
37  lib/Catalyst/Default/View/HTML.pm
... ...
@@ -0,0 +1,37 @@
  1
+package Catalyst::Default::View::HTML;
  2
+
  3
+use strict;
  4
+use warnings;
  5
+
  6
+use base 'Catalyst::View::TT';
  7
+
  8
+__PACKAGE__->config(
  9
+    # Change default TT extension
  10
+    TEMPLATE_EXTENSION => '.tt2',
  11
+    render_die => 1,
  12
+);
  13
+
  14
+=head1 NAME
  15
+
  16
+Catalyst::Default::View::HTML - TT View for Catalyst::Default
  17
+
  18
+=head1 DESCRIPTION
  19
+
  20
+TT View for Catalyst::Default.
  21
+
  22
+=head1 SEE ALSO
  23
+
  24
+L<Catalyst::Default>
  25
+
  26
+=head1 AUTHOR
  27
+
  28
+Phillip Smith
  29
+
  30
+=head1 LICENSE
  31
+
  32
+This library is free software. You can redistribute it and/or modify
  33
+it under the same terms as Perl itself.
  34
+
  35
+=cut
  36
+
  37
+1;
8  t/view_HTML.t
... ...
@@ -0,0 +1,8 @@
  1
+use strict;
  2
+use warnings;
  3
+use Test::More;
  4
+use Test::More;
  5
+
  6
+BEGIN { use_ok 'Catalyst::Default::View::HTML' }
  7
+
  8
+done_testing();

0 notes on commit 33a2527

Please sign in to comment.
Something went wrong with that request. Please try again.