Mercurial > hg > genshi_view
comparison 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 |
comparison
equal
deleted
inserted
replaced
10:ffdfb79b30bf | 11:8a7731b2126a |
---|---|
1 <!DOCTYPE html | 1 <!DOCTYPE html |
2 PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" | 2 PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" |
3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | 3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
4 <html xmlns="http://www.w3.org/1999/xhtml" | 4 <html xmlns="http://www.w3.org/1999/xhtml" |
5 xmlns:py="http://genshi.edgewall.org/"> | 5 xmlns:py="http://genshi.edgewall.org/" |
6 xmlns:xi="http://www.w3.org/2001/XInclude"> | |
6 <head> | 7 <head> |
7 <title>Hello world</title> | 8 <title>Hello world</title> |
8 <!-- TODO: jquery fun --> | 9 <script src="${link('jquery.js')}"></script> |
10 <script type="text/javascript"> | |
11 $(document).ready(function(){ | |
12 $(".text-input").click(function(){ | |
13 $(this).replaceWith('<form method="post"><input type="text" name="name" value="${name}"/><input type="submit" value="Go!"/></form>'); | |
14 }); | |
15 }); | |
16 </script> | |
9 </head> | 17 </head> |
10 <body> | 18 <body> |
11 <!-- TODO: xi:include --> | 19 <xi:include href="navigation.html" /> |
12 Hello ${request.remote_user or 'world'}! | 20 Hello <span class="text-input">${name}</span>! |
13 </body> | 21 </body> |
14 </html> | 22 </html> |