/djaml

Django template loader that supports HamlPy

Primary LanguagePythonMIT LicenseMIT

-- markdown --

Djaml is a template loader for Django that allows you to use HamlPy in your templates

It is based on the django-shpaml-template-loader project, and is licensed under the MIT license.

Requirements

  • Django -- I've tested it using Django 1.2.3 and the version of Django that is included with the djangoappengine project
  • HamlPy -- tested using version as of December 4, 2010

Installation

You can either copy all the files into 'djaml' in the root of your Django project or install it using the included setup.py file.

Having done that, you need to add djaml as the first item in TEMPLATE_LOADERS

TEMPLATE_LOADERS = (
    'djaml.filesystem',
    ...
)

If you don't put djaml first, then the standard Django template loaders will try and process it first.

Make sure your templates have a .haml extension, and put them wherever you've told Django to expect to find templates.

If you have any questions or comments, send some email to chartjes@littlehart.net