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',
}
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gears-handlebars-0.1.8.tar.gz
(563.7 kB
view details)
File details
Details for the file gears-handlebars-0.1.8.tar.gz.
File metadata
- Download URL: gears-handlebars-0.1.8.tar.gz
- Upload date:
- Size: 563.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
474ba53d86084694646ef38ac549ca49f6ee3e727ddb06621ffada3f4fd60ea8
|
|
| MD5 |
d5f6f3624a097bc8596544e91ae32050
|
|
| BLAKE2b-256 |
818715b2176cb28ec0908fc0ecc123997c37e56cf5e476ec6cd1538a3c9de9ca
|