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

Jifty commits jifty-commit at lists.jifty.org
Tue Nov 17 14:38:57 EST 2009


Author: sartak
Date: Tue Nov 17 14:38:56 2009
New Revision: 7620

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

Log:
More form {} doc

Modified: jifty/trunk/lib/Jifty/View/Declare/Helpers.pm
==============================================================================
--- jifty/trunk/lib/Jifty/View/Declare/Helpers.pm	(original)
+++ jifty/trunk/lib/Jifty/View/Declare/Helpers.pm	Tue Nov 17 14:38:56 2009
@@ -175,8 +175,8 @@
 
 =head3 form CODE
 
-Takes a subroutine reference or block of perl as its only argument and renders it as a Jifty C<form>,
-for example:
+Takes a subroutine reference or block of perl as its only argument and renders
+it as a Jifty C<form>, for example:
 
     my $action = new_action class => 'CreateTask';
     form {
@@ -185,6 +185,12 @@
         form_submit( label => _('Create') );
     };
 
+You can specify the form name using L<Template::Declare::Tags/with>, like so:
+
+    with (name => 'create_task'), form {
+        ...
+    };
+
 =cut
 
 {


More information about the Jifty-commit mailing list