]> git.rkrishnan.org Git - .emacs.d.git/blob - emacs/nxhtml/tests/in/genshi.ghtml
remove toolbar and menubar
[.emacs.d.git] / emacs / nxhtml / tests / in / genshi.ghtml
1 <?python
2   title = "A Genshi Template"
3   fruits = ["apple", "orange", "kiwi"]
4 ?>
5 <html xmlns:py="http://genshi.edgewall.org/">
6   <head>
7     <title py:content="title">This is replaced.</title>
8   </head>
9   <body>
10     <p>These are some of my favorite fruits:</p>
11     <ul>
12       <li py:for="fruit in fruits">
13         I like ${fruit}s
14       </li>
15     </ul>
16 {% python
17     from genshi.builder import tag
18     def greeting(name):
19         return 'Hello, %s!' % name
20 %}
21 ${greeting('world')}
22   </body>
23 </html>