comparison simplewiki/templates/index.html @ 2:2464e2051b78

[mq]: index
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 07 Sep 2010 21:00:46 -0700
parents d5102c881cb5
children 56ab6b90cd1a
comparison
equal deleted inserted replaced
1:4c83f7715993 2:2464e2051b78
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 xmlns:xi="http://www.w3.org/2001/XInclude">
7 <head> 7 <head>
8 <title>Hello world</title> 8 <title>${directory}</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> 9 </head>
18 <body> 10 <body>
19 <xi:include href="navigation.html" /> 11 <ul>
20 Hello <span class="text-input">${name}</span>! 12 <li py:if="request.path_info != '/'"><a href="..">..</a></li>
13 <li py:for="f in files"><a href="${f}">${f}</a></li>
14 </ul>
21 </body> 15 </body>
22 </html> 16 </html>