Jinja2 templates rendering from yaml data.
Project description
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
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
jitsu-0.0.1.tar.gz
(4.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jitsu-0.0.1.tar.gz.
File metadata
- Download URL: jitsu-0.0.1.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
71413aafcf87d56d4aeb8642b129c755f35f0a16137d4fb2ad109573da1289b0
|
|
| MD5 |
80b6413df161d8b6bb4d24dfdc3e1cf1
|
|
| BLAKE2b-256 |
216a92a7011dcdb3e8510fc4eea38ca7ef2cd795e671b9b262a1e3df69623cbb
|
File details
Details for the file jitsu-0.0.1-py2.py3-none-any.whl.
File metadata
- Download URL: jitsu-0.0.1-py2.py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
24f3fbbed33990ea26a7f77584dd4f0529b84e9019e711c3ca651c757e3b957e
|
|
| MD5 |
d2f9af4b0c307f8c3a7119110a1d9d07
|
|
| BLAKE2b-256 |
17e8fb3b2885160adcee21cbfe6ed84870aa792af7bb2470fc7ff6bc9fee46cc
|