Skip to content

karthikbgl/mako-renderer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

mako-renderer

This is a simple template rendering engine that integrated mako templates into a django (1.8+) project

Dependencies

  1. Django 1.8+
  2. Mako

settings.py

MAKO_TEMPLATE_DIRS = [] #Path to mako templates directories

Also, append the following to your TEMPLATES' backends. Example:

TEMPLATES += [
    {  
        'BACKEND': 'mako_renderer.mako_template_backend.MakoEngine',
        'APP_DIRS': False,
        'DIRS': [os.path.join(ROOT_TEMPLATE_DIR, 'mako')], #MAKO_TEMPLATE_PATH,
        'OPTIONS': {
            'context_processors': TEMPLATE_CONTEXT_PROCESSORS,
        }
    }
]

Rename ROOT_TEMPLATE_DIR with your template root

##TODO

  1. Add unit tests
  2. Add support for templates in APP_DIRS

About

This is a simple template rendering engine that integrated mako templates into a django (1.8+) project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages