diff genshi_view/template/+package+/templates/index.html @ 11:8a7731b2126a

include a post method, a nav bar, and some jquery fun
author k0s <k0scist@gmail.com>
date Sat, 07 Nov 2009 22:49:46 -0500
parents ffdfb79b30bf
children
line wrap: on
line diff
--- a/genshi_view/template/+package+/templates/index.html	Fri Nov 06 16:58:51 2009 -0500
+++ b/genshi_view/template/+package+/templates/index.html	Sat Nov 07 22:49:46 2009 -0500
@@ -2,13 +2,21 @@
     PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml"
-      xmlns:py="http://genshi.edgewall.org/">
+      xmlns:py="http://genshi.edgewall.org/"
+      xmlns:xi="http://www.w3.org/2001/XInclude">
 <head>
 <title>Hello world</title>
-<!-- TODO: jquery fun -->
+<script src="${link('jquery.js')}"></script>
+<script type="text/javascript">
+$(document).ready(function(){
+$(".text-input").click(function(){
+$(this).replaceWith('<form method="post"><input type="text" name="name" value="${name}"/><input type="submit" value="Go!"/></form>');
+});
+});
+</script>
 </head>
 <body>
-<!-- TODO: xi:include -->
-Hello ${request.remote_user or 'world'}!
+<xi:include href="navigation.html" />
+Hello <span class="text-input">${name}</span>!
 </body>
 </html>