Skip to main content

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

  1. Install virtualenv:

    $ wget https://raw.github.com/pypa/virtualenv/master/virtualenv.py
    $ python2.7 ./virtualenv.py --no-site-packages venv
    
  2. Clone pyhogan from github and then install:

    $ git clone git://github.com/fafhrd91/pyhogan.git
    $ cd pyhogan
    $ ../venv/bin/python setup.py develop
    
  3. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
pyhogan-0.2.tar.gz (17.6 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page