Simple wrapper around jinja2 templating
Project description
Jacob's Jinja Too
A simple wrapper around Jinja2 templating with a collection of custom filters. Jinja2 is a templating language for Python.
Only tested with Python3.7.
The main purpose for this project is for depencency management as this diagram shows:
[Top Level Project] --> [jacobs-jinja-too] : uses
[Top Level Project] --> [Another Project] : depends
[Another Project] --> [jacobs-jinja-too] : uses
Installation
pip3 install jacobs-jinja-too
Example Usage
from jacobsjinjatoo import Templator as jj2
t = jj2.MarkdownTemplator()
t.add_template_dir('templates/')
params = {
"name": "My Name"
}
t.render_template('foo.jinja2', output_name='foo.txt', **params)
License
GPLv2
There is no copyright claim or ownership of any content created by jacobs-jinja-too.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
jacobs-jinja-too-0.0.6.tar.gz
(10.9 kB
view hashes)
Built Distribution
Close
Hashes for jacobs_jinja_too-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e129896f0134b32054f2894425018ac2558a6e9af70e743b8f1ebd314c332f5 |
|
MD5 | 4a246aef199e40f4f3115f7a34039d67 |
|
BLAKE2b-256 | 902fd885941bdcc858d78180cecba399d980f768b310388de3deb4dc722035f8 |