add default_view to synopsis
Caleb Cushing [Wed, 31 Mar 2010 14:40:32 +0000 (14:40 +0000)]
not setting a default_view causes the default to be random, better just to tell
people to set it. also changing MyApp to __PACKAGE__ which is the standard
convention and less confusing.

lib/Catalyst/View/TT.pm

index 4c0662b..80ab854 100644 (file)
@@ -28,9 +28,10 @@ Catalyst::View::TT - Template View Class
 
 # configure in lib/MyApp.pm (Could be set from configfile instead)
 
-    MyApp->config(
-        name     => 'MyApp',
-        root     => MyApp->path_to('root'),
+    __PACKAGE__->config(
+        name         => 'MyApp',
+        root         => MyApp->path_to('root'),
+        default_view => 'TT',
         'View::TT' => {
             # any TT configurations items go here
             INCLUDE_PATH => [