Djaml

screenshot of Djaml

Django template loader that supports HamlPy

Overview

Djaml is a template loader for Django that enables the use of HamlPy in Django templates. It is based on the django-shpaml-template-loader project and is licensed under the MIT license.

Features

  • Template Loader: Djaml allows the use of HamlPy in Django templates.
  • Compatibility: Tested with Django versions 1.2.x, 1.3.0, and the version included with djangoappengine.
  • Installation Options: Users can either copy all files into the 'djaml' directory in the Django project root or install it using the included setup.py file.
  • Configuration: Djaml needs to be added as the first item in TEMPLATE_LOADERS to ensure it is used before the standard Django template loaders.
  • File Extension: Templates should have a .haml extension and should be placed in the expected template directory specified in Django's configuration.
  • Template Caching: Adding django.template.loaders.cached.Loader to TEMPLATE_LOADERS enables template caching.

Summary

Djaml is a template loader for Django that allows the use of HamlPy in Django templates. It provides compatibility with different versions of Django, options for installation, and template caching. By following the installation and configuration steps, users can leverage the benefits of HamlPy in their Django projects. If you have any questions or feedback, you can contact the developer at chartjes@littlehart.net.