use MRO::Compat;
use Scalar::Util qw/blessed weaken/;
-our $VERSION = '0.37';
+our $VERSION = '0.39';
$VERSION = eval $VERSION;
__PACKAGE__->mk_accessors('template');
something like this:
package FooBar::View::Web;
+ use Moose;
- use strict;
- use warnings;
-
- use base 'Catalyst::View::TT';
+ extends 'Catalyst::View::TT';
__PACKAGE__->config(DEBUG => 'all');
having a C<additional_template_paths> key with a value of additonal directories
to search. See L<CAPTURING TEMPLATE OUTPUT> for an example showing this.
+=head2 Unicode
+
+Be sure to set C<< ENCODING => 'utf-8' >> and use
+L<Catalyst::Plugin::Unicode::Encoding> if you want to use non-ascii
+characters (encoded as utf-8) in your templates.
+
=head2 RENDERING VIEWS
The view plugin renders the template specified in the C<template>
L<Template>.
package MyApp::View::Web;
-
- use strict;
- use base 'Catalyst::View::TT';
+ use Moose;
+ extends 'Catalyst::View::TT';
use Template::AutoFilter;