About
Do more with less
ReML is a simple indentation-based markup language (and template engine) for Python that improves readability and makes your code more compact. It is inspired by HAML.
Example
- page_title = 'Cool site'
- x = 5
- url = 'http://site.com'
%html
%head
%title= page_title
%body
#contents
%h1 Intro
- if x > 10:
We have a big number here:
- else:
We have a small number here:
= x
%hr/
Let's add a link:
%a: 'href': url, 'target': '_blank'
Click me!
The code above is transformed to something like this:
<html>
<head>
<title>Cool site</title>
</head>
<body>
<div id="contents">
<h1>Intro</h1>
We have a small number here:
5
<hr />
Let's add a link:
<a href="http://site.com" target="_blank">Click me!</a>
</div>
</body>
</html>
page_revision: 8, last_edited: 1202495599|%e %b %Y, %H:%M %Z (%O ago)





