X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FView%2FTT.pm;h=0938f628e903c0c0873041f56867f03266174b74;hb=1749a637bec49cca68dd5c4a4419684268c48196;hp=93fad62133841c543ebe5bfa0f973689d011279e;hpb=63714e3ffff12240c07c20b4388d3549ccbd18b2;p=catagits%2FCatalyst-View-TT.git diff --git a/lib/Catalyst/View/TT.pm b/lib/Catalyst/View/TT.pm index 93fad62..0938f62 100644 --- a/lib/Catalyst/View/TT.pm +++ b/lib/Catalyst/View/TT.pm @@ -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 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} ( { + if ( $config->{TIMER} ) { if ( $config->{CONTEXT} ) { $c->log->error( 'Cannot use Template::Timer - a TT CONFIG is already defined');