comparison makeitso/templates/index.html @ 14:bf1ce840d0f0

make this a genshi view (should be: tempita view)
author Jeff Hammel <jhammel@mozilla.com>
date Mon, 15 Nov 2010 08:05:55 -0800
parents
children 941c1f73c2b6
comparison
equal deleted inserted replaced
13:99588f138993 14:bf1ce840d0f0
1 <!DOCTYPE html
2 PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4 <html xmlns="http://www.w3.org/1999/xhtml"
5 xmlns:py="http://genshi.edgewall.org/"
6 xmlns:xi="http://www.w3.org/2001/XInclude">
7 <head>
8 <title>Hello world</title>
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>
17 </head>
18 <body>
19 <xi:include href="navigation.html" />
20 Hello <span class="text-input">${name}</span>!
21 </body>
22 </html>