A JavaScript code generator for Jinja templates
Project description
About Jasinja
Jasinja is a compiler for Jinja templates targeting Javascript. I started it when we wanted to start generating or extending some of the pages in an internal webapp with dynamic webapp. I have grown rather fond of Jinja’s template syntax, and much prefer it to working with JavaScript (which, in my experience, is rather limited compared to Python itself). I thus wrote a proof of concept to have Jinja templates compiled to JavaScript, and Jinja is the result. It works quite well for the (admittedly limited) subset of Jinja we use at work, and I hope it may work well for you.
Requirements
Jasinja has been tested against Python 2.5, 2.6 and 2.7. It only depends on Jinja (tested against version 2.6) and setuptools/Distribute. However, running the test suite has two further requirements: python-spidermonkey (tested with version 0.0.10) and JSON support. For JSON support, either the stdlib json module can be used or the simplejson library (the latter is always preferred when installed).
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
File details
Details for the file jasinja-0.8.0.tar.gz
.
File metadata
- Download URL: jasinja-0.8.0.tar.gz
- Upload date:
- Size: 7.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 662f0a6ea0644915ef48f16c503947d31afc04bdc68239758e31d5f020842a96 |
|
MD5 | 3ddf9b456c124c60ce30b8b8fe3020b4 |
|
BLAKE2b-256 | 9b5909b845c1c926cc183046467a4ccdb5f37e053a90ca64a814b19cc611ead1 |