handlebars.js transpiled to python with js2py
Project description
handlebars-py
handlebars.js transpiled to python with js2py
Usage
#!pip install handlebars
from handlebars import Handlebars
template = Handlebars.compile( "Name: {{name}}" )
template({ "name": "Jane" })
# returns: 'Name: Jane'
Development
pip install -e .[dev]
Test
pytest
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
Built Distribution
File details
Details for the file handlebars-4.7.8.post20241027.tar.gz
.
File metadata
- Download URL: handlebars-4.7.8.post20241027.tar.gz
- Upload date:
- Size: 69.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e6e341b95d429b589fe9df881dedd34ac558c91b5c3412433968f85a289baff |
|
MD5 | 02613e41b373d9781fc6f795813e367d |
|
BLAKE2b-256 | ce5cc096425ab6782dabbf9a7171db0a75565bdd5249d30cbc7e9972aebc7043 |
File details
Details for the file handlebars-4.7.8.post20241027-py3-none-any.whl
.
File metadata
- Download URL: handlebars-4.7.8.post20241027-py3-none-any.whl
- Upload date:
- Size: 66.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5cfa16cb0d6b3eefea7ed4909c603cfb06d69955141e523053b180821e925d91 |
|
MD5 | f6fb561725f5f91d6d4302ae55140e1f |
|
BLAKE2b-256 | 0505bf995eda7d8a0d2f3b6ea249ffdd653ce8ce21e86914d9eeab691ab51e39 |