Welcome to GHRML
GHRML takes your ugly XML/XHTML templates and makes them a joy to edit. It is inspired by Haml, and provides similarly nice indentation-based syntax for Python templates - a very natural fit! GHRML is initially implemented for Genshi Markup Templates (GHRML = Genshi Human Readable Markup Language), and can already also be used in Django.
So how does it look? Here is a small example:
%html
%head
%title Hello World
%style{'type': 'text/css'}
body { font-family: sans-serif; }
%script{'type': 'text/javascript', 'src': 'foo.js'}
%body
#header
%h1 Hello World
%ul.navigation
%li[for item in navigation]
%a{'href': item.href} $item.caption
#contents
Hello World!
Starting Points
- Original annoucement of GHRML by Armin Ronacher
- Installation and usage instructions for GHRML
- Websites written in pure GHRML: ElasticHosts (layout and index templates for that page)
- E-mail richard.davies of ElasticHosts with any bugs, patches or questions