Mustache to javascript compiler.
Project description
Mustache to javascript compiler
Mustache to javascript compiler written in python. It is based on twitter hogan.js compiler http://twitter.github.com/hogan.js/
Hogan.Template is still required for rendering.
Installation
Install virtualenv:
$ wget https://raw.github.com/pypa/virtualenv/master/virtualenv.py $ python2.7 ./virtualenv.py --no-site-packages venv
Clone pyhogan from github and then install:
$ git clone git://github.com/fafhrd91/pyhogan.git $ cd pyhogan $ ../venv/bin/python setup.py develop
Compile your mustache templates:
$ ../venv/bin/pyhogan template.mustache new Hogan.Template(function(c,p,i){...}
Testing
Node.js is required for tests:
$ cd pyhogen/spec/ $ ../../venv/python ./mustache_spec.py
Requirements
Python 2.6 and up
Hogan.js 1.0.5
CHANGES
0.2 (2012-02-09)
Fixed setup.py
0.1 (2012-02-09)
Initial release
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyhogan-0.2.tar.gz
(17.6 kB
view details)
File details
Details for the file pyhogan-0.2.tar.gz
.
File metadata
- Download URL: pyhogan-0.2.tar.gz
- Upload date:
- Size: 17.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc5f6da78294443a7dfe51f4bdb2abfb26badb088ed923f70d7d13060d7263c7 |
|
MD5 | 9f31d2b66d1848372bbc94fd9aaab2a0 |
|
BLAKE2b-256 | 94754af7573e27014f4b33cfaf2b4ce64397f6e75f98f7ca3e405efbd5447742 |