Revision history for Perl extension Catalyst::View::TT.
0.10 XXX XXX XX XX:00:00 2005
+ - Added POD tests and made them pass.
- updated for Catalyst 5
0.09 Wed Mar 29 13:47:00 2005
=head2 METHODS
+=over 4
+
+=item new
+
+The constructor for the TT view. Sets up the template provider,
+and reads the application config.
+
=cut
sub new {
return $self;
}
-=head3 process
+=item process
-Renders the template specified in C<< $c->stash->{template} >> or C<< $c->request->match >>.
-Template variables are set up from the contents of C<< $c->stash >>, augmented with C<base>
-set to C<< $c->req->base >>, C<c> to C<$c> and C<name> to C<< $c->config->{name} >>. Output is
-stored in C<< $c->response->output >>.
+Renders the template specified in C<< $c->stash->{template} >> or C<<
+$c->request->match >>.
+Template variables are set up from the contents of C<< $c->stash >>,
+Jaugmented with C<base> set to C<< $c->req->base >>, C<c> to C<$c> and
+C<name> to C<< $c->config->{name} >>. Output is stored in
+C<< $c->response->output >>.
=cut
return 1;
}
-=head3 config
+=item config
This allows your view subclass to pass additional settings to the
TT config hash.
-=cut
+=back
=head1 SEE ALSO
-L<Catalyst>.
+L<Catalyst>. L<Template::Manual>
=head1 AUTHOR
=head1 COPYRIGHT
-This program is free software, you can redistribute it and/or modify it under
-the same terms as Perl itself.
+This program is free software, you can redistribute it and/or modify it
+under the same terms as Perl itself.
=cut
--- /dev/null
+use Test::More;
+
+eval "use Test::Pod 1.14";
+plan skip_all => 'Test::Pod 1.14 required' if $@;
+plan skip_all => 'set TEST_POD to enable this test' unless $ENV{TEST_POD};
+
+all_pod_files_ok();
--- /dev/null
+use Test::More;
+
+eval "use Test::Pod::Coverage 1.04";
+plan skip_all => 'Test::Pod::Coverage 1.04 required' if $@;
+plan skip_all => 'set TEST_POD to enable this test' unless $ENV{TEST_POD};
+
+all_pod_coverage_ok();