[Jifty-commit] r2450 - in jifty/branches/template-declare: .

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Mon Jan 1 23:59:24 EST 2007


Author: jesse
Date: Mon Jan  1 23:59:23 2007
New Revision: 2450

Modified:
   jifty/branches/template-declare/   (props changed)
   jifty/branches/template-declare/lib/Jifty/View/Declare/Templates.pm

Log:
 r46651 at pinglin:  jesse | 2007-01-01 23:54:31 -0500
 * Added a set( x=>y) to t::d
 


Modified: jifty/branches/template-declare/lib/Jifty/View/Declare/Templates.pm
==============================================================================
--- jifty/branches/template-declare/lib/Jifty/View/Declare/Templates.pm	(original)
+++ jifty/branches/template-declare/lib/Jifty/View/Declare/Templates.pm	Mon Jan  1 23:59:23 2007
@@ -6,7 +6,7 @@
 use Template::Declare::Tags;
 
 use base qw/Template::Declare/;
-our @EXPORT = qw(form hyperlink tangent redirect new_action form_submit form_next_page request get render_param current_user render_action render_region );
+our @EXPORT = qw(form hyperlink tangent redirect new_action form_submit form_next_page request get set render_param current_user render_action render_region );
 
 {
 no warnings qw/redefine/;
@@ -76,6 +76,14 @@
     }
 }
 
+sub set {
+    while (my ($arg, $val) = (shift @_, shift @_)){ 
+    request->argument($arg => $val);
+    }
+
+}
+
+
 sub render_param {
     my $action = shift;
     outs_raw($action->form_field(@_));


More information about the Jifty-commit mailing list