Skip to main content

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

Metadata

Release files for pyhogan 0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyhogan 0.2
File Size Uploaded Provenance Actions
pyhogan-0.2.tar.gz 17.6 kB Without provenance Details for pyhogan-0.2.tar.gz

Release files / pyhogan-0.2.tar.gz

Download URL pyhogan-0.2.tar.gz
Size 17.6 kB
Tags Source
SHA-256 checksum
How to use checksums
dc5f6da78294443a7dfe51f4bdb2abfb26badb088ed923f70d7d13060d7263c7
BLAKE2b-256 checksum
How to use checksums
94754af7573e27014f4b33cfaf2b4ce64397f6e75f98f7ca3e405efbd5447742
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for pyhogan 0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page