[Jifty-commit] r6048 - jifty/trunk/lib/Jifty/View/Declare

Jifty commits jifty-commit at lists.jifty.org
Mon Dec 1 00:34:32 EST 2008


Author: ruz
Date: Mon Dec  1 00:34:32 2008
New Revision: 6048

Modified:
   jifty/trunk/lib/Jifty/View/Declare/BaseClass.pm

Log:
* update docs

Modified: jifty/trunk/lib/Jifty/View/Declare/BaseClass.pm
==============================================================================
--- jifty/trunk/lib/Jifty/View/Declare/BaseClass.pm	(original)
+++ jifty/trunk/lib/Jifty/View/Declare/BaseClass.pm	Mon Dec  1 00:34:32 2008
@@ -21,7 +21,15 @@
 
 =head2 use_mason_wrapper
 
-Call this function in your view class to use your mason wrapper for L<Template::Declare> templates.
+Call this function in your view class to use your mason wrapper for L<Template::Declare> templates,
+something like:
+
+    package TestApp::View;
+    use Jifty::View::Declare -base;
+    __PACKAGE__->use_mason_wrapper;
+
+If you don't use mason then you can define a C<wrapper> function in the view class to override
+default page layouts.
 
 =cut
 


More information about the Jifty-commit mailing list