[Jifty-commit] r7288 - jifty/trunk/t/TestApp-Plugin-SinglePage/lib/TestApp/Plugin/SinglePage

Jifty commits jifty-commit at lists.jifty.org
Thu Jul 2 05:18:55 EDT 2009


Author: c9s
Date: Thu Jul  2 05:18:53 2009
New Revision: 7288

Modified:
   jifty/trunk/t/TestApp-Plugin-SinglePage/lib/TestApp/Plugin/SinglePage/View.pm

Log:
spa link test

Modified: jifty/trunk/t/TestApp-Plugin-SinglePage/lib/TestApp/Plugin/SinglePage/View.pm
==============================================================================
--- jifty/trunk/t/TestApp-Plugin-SinglePage/lib/TestApp/Plugin/SinglePage/View.pm	(original)
+++ jifty/trunk/t/TestApp-Plugin-SinglePage/lib/TestApp/Plugin/SinglePage/View.pm	Thu Jul  2 05:18:53 2009
@@ -15,7 +15,31 @@
 	    form_submit( label => 'Next' );
 	};
 	render_region('random');
-    };
+
+    hyperlink( 
+        url => '/xxx', 
+        escape_label => 0, 
+        label => 'Link Test',
+    );
+
+    hyperlink( 
+        url => '/xxx', 
+        escape_label => 0, 
+        label => 'Link Test with parameters',
+        parameters => { id => 3 },
+    );
+
+    hr { };
+    
+	hyperlink( 
+        label => 'foo', 
+        onclick => { 
+            region => 'foo', 
+            replace_with => '_r_foo', 
+            args => { foo => '123123' } } 
+    );
+
+};
 
 template '/page2' =>
     page { title => 'page2' }
@@ -33,7 +57,7 @@
 	    render_action($create);
 	    form_submit( label   => 'Next' );
 	}
-    };
+};
 
 template 'page3' =>
     page { title => 'page3' }
@@ -42,7 +66,7 @@
 	form {
 	    hyperlink(label => 'Back', url => '/');
 	}
-    };
+};
 
 template '_r_foo' => sub {
     my $foo = get('foo');
@@ -62,5 +86,11 @@
     p { "This Is Page Three" };
 };
 
+
+template '/xxx' => page {
+    h2 { "xxx" };
+    h2 { get('id') };
+};
+
 1;
 


More information about the Jifty-commit mailing list