legacy-dotfiles/emacs.d/nxhtml/tests/in/genshi.ghtml
Tom Willemsen 94d2fc1815 Django, org
* Added nxhtml, mostly for django support.

  * Changed some org settings.
2011-03-07 09:04:49 +01:00

23 lines
498 B
Text

<?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>