released
[catagits/Catalyst-View-TT.git] / lib / Catalyst / View / TT.pm
index e86cdd8..0938f62 100644 (file)
@@ -6,7 +6,7 @@ use Template;
 use Template::Timer;
 use NEXT;
 
-our $VERSION = '0.13';
+our $VERSION = '0.14';
 
 __PACKAGE__->mk_accessors('template');
 
@@ -26,7 +26,7 @@ Catalyst::View::TT - Template View Class
     MyApp->config({
         name     => 'MyApp',
         root     => $ROOT,
-        'MyApp::V::TT' => {
+        'V::TT' => {
             # any TT configurations items go here
             INCLUDE_PATH => [
               "$ROOT/templates/src", 
@@ -151,7 +151,7 @@ subclass).
     MyApp->config({
         name     => 'MyApp',
         root     => $ROOT,
-        'MyApp::V::TT' => {
+        'V::TT' => {
             INCLUDE_PATH => ["$ROOT/templates/src", "$ROOT/templates/lib"],
             PRE_PROCESS  => 'config/main',
             WRAPPER      => 'site/wrapper',
@@ -209,7 +209,7 @@ be referenced.
     MyApp->config({
         name     => 'MyApp',
         root     => $ROOT,
-        'MyApp::V::TT' => {
+        'V::TT' => {
             CATALYST_VAR => 'Catalyst',
         },
     });
@@ -243,7 +243,7 @@ You can suppress template profiling by setting the C<TIMER> configuration
 item to a false value.
 
     MyApp->config({
-        'MyApp::V::TT' => {
+        'V::TT' => {
             TIMER => 0,
         },
     });
@@ -275,7 +275,7 @@ sub new {
     # Template::Timer as a custom CONTEXT object, but only if we haven't
     # already got a custom CONTEXT defined
 
-    if ( $config->{TIMER} || ( $c->debug() && !exists $config->{TIMER} ) ) {
+    if ( $config->{TIMER} ) {
         if ( $config->{CONTEXT} ) {
             $c->log->error(
                 'Cannot use Template::Timer - a TT CONFIG is already defined');
@@ -388,11 +388,14 @@ automatically.
 L<Catalyst>, L<Catalyst::Helper::View::TT>,
 L<Catalyst::Helper::View::TTSite>, L<Template::Manual>
 
-=head1 AUTHOR
+=head1 AUTHORS
 
 Sebastian Riedel, C<sri@cpan.org>
+
 Marcus Ramberg, C<mramberg@cpan.org>
+
 Jesse Sheidlower, C<jester@panix.com>
+
 Andy Wardley, C<abw@cpan.org>
 
 =head1 COPYRIGHT