Mercurial > hg > genshi_view
view 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 source
<!DOCTYPE html 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:xi="http://www.w3.org/2001/XInclude"> <head> <title>Hello world</title> <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> <xi:include href="navigation.html" /> Hello <span class="text-input">${name}</span>! </body> </html>