readme.md

HamlPy

HamlPy (pronounced "haml pie") is a tool for Django developers who want to use a Haml like syntax for their templates.
HamlPy is not a template engine in itself but simply a compiler which will convert HamlPy files into templates that Django can understand.

But wait, what is Haml? Haml is an incredible template engine written in Ruby used a lot in the Rails community. You can read more about it here.

Installing

Stable release

The latest stable version of HamlPy can be installed using setuptoolseasy_install hamlpy or pip (pip install hamlpy)

If you don't put the HamlPy template loader first, then the standard Django template loaders will try to process
it first. Make sure your templates have a .haml or .hamlpy extension, and put them wherever you've told Django
to expect to find templates (TEMPLATE_DIRS).

Template caching

For caching, just add django.template.loaders.cached.Loader to your TEMPLATE_LOADERS:

Create message files for translation

Reference

Check out the reference.md file for a complete reference and more examples.

Status

HamlPy currently:

has no configuration file. which it should for a few reasons, like turning off what is autoescaped for example

does not support some of the filters yet

Contributing

Very happy to have contributions to this project. Please write tests for any new features and always ensure the current tests pass. You can run the tests from the hamlpy/test folder using nosetests by typing