jitsu - jinja2 rendering with yaml
Simple, easy rendering of templates for each data file, with one command.
What jitsu does?
jitsu renders data in each data file to specified jinja2 template, and
then store the results in a new directory _dist.
Usage
- Installation:
pip install jitsu - Directory structure:
- All the templates go to
templatesdirectory. (Can also be specified with-toption) - All the data files go to
datadirectory. (Can also be specified with-doption.)
- All the templates go to
- Run
jitsu.
Applications
Static websites
templates/
`-- blog-post.j2
|- poem-post.j2
data/
`-- post1.yaml
|- post1.yaml
|- post2.yaml
|- post3.yaml
|- post4.yaml
|- poem1.yaml
|- poem2.yaml
Running jitsu will give something like this
_dist/
`-- post1.html
|- post2.html
|- post3.html
|- post4.html
|- poem1.html
|- poem2.html
Metadata
Release files for jitsu 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| jitsu-0.0.1.tar.gz | 4.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| jitsu-0.0.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 7.3 kB
Release files / jitsu-0.0.1.tar.gz
| Download URL | jitsu-0.0.1.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
71413aafcf87d56d4aeb8642b129c755f35f0a16137d4fb2ad109573da1289b0
|
|
BLAKE2b-256 checksum How to use checksums |
216a92a7011dcdb3e8510fc4eea38ca7ef2cd795e671b9b262a1e3df69623cbb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / jitsu-0.0.1-py2.py3-none-any.whl
| Download URL | jitsu-0.0.1-py2.py3-none-any.whl |
|---|---|
| Size | 3.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
24f3fbbed33990ea26a7f77584dd4f0529b84e9019e711c3ca651c757e3b957e
|
|
BLAKE2b-256 checksum How to use checksums |
17e8fb3b2885160adcee21cbfe6ed84870aa792af7bb2470fc7ff6bc9fee46cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |