summaryrefslogtreecommitdiffstats
path: root/emacs.d/nxhtml/tests/in/genshi.ghtml
diff options
context:
space:
mode:
Diffstat (limited to 'emacs.d/nxhtml/tests/in/genshi.ghtml')
-rw-r--r--emacs.d/nxhtml/tests/in/genshi.ghtml23
1 files changed, 23 insertions, 0 deletions
diff --git a/emacs.d/nxhtml/tests/in/genshi.ghtml b/emacs.d/nxhtml/tests/in/genshi.ghtml
new file mode 100644
index 0000000..bf0848d
--- /dev/null
+++ b/emacs.d/nxhtml/tests/in/genshi.ghtml
@@ -0,0 +1,23 @@
+<?python
+ title = "A Genshi Template"
+ fruits = ["apple", "orange", "kiwi"]
+?>
+<html xmlns:py="http://genshi.edgewall.org/">
+ <head>
+ <title py:content="title">This is replaced.</title>
+ </head>
+ <body>
+ <p>These are some of my favorite fruits:</p>
+ <ul>
+ <li py:for="fruit in fruits">
+ I like ${fruit}s
+ </li>
+ </ul>
+{% python
+ from genshi.builder import tag
+ def greeting(name):
+ return 'Hello, %s!' % name
+%}
+${greeting('world')}
+ </body>
+</html>