Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Handlebars compiler for Gears
branch: develop
Failed to load latest commit information.
example Add example project to test compilation
gears_handlebars Update bundled Handlebars version from 1.3.0 to 2.0.0
.gitignore Add example project to test compilation
LICENSE Initial commit
MANIFEST.in Initial commit
Makefile Initial commit
README.rst Update bundled Handlebars version from 1.3.0 to 2.0.0
requirements.txt
setup.py

README.rst

gears-handlebars

Handlebars compiler for Gears. This package already includes the Handlebars source code for you, so you don't need to worry about installing it yourself.

Bundled Handlebars version: 2.0.0

Installation

Install gears-handlebars with pip:

$ pip install gears-handlebars

Requirements

gears-handlebars requires node.js to be installed in your system.

Usage

Add gears_handlebars.HandlebarsCompiler to environment's compilers registry:

from gears_handlebars import HandlebarsCompiler
environment.compilers.register('.handlebars', HandlebarsCompiler.as_handler())

If you use Gears in your Django project, add this code to its settings:

GEARS_COMPILERS = {
    '.handlebars': 'gears_handlebars.HandlebarsCompiler',
}
Something went wrong with that request. Please try again.