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.5.tar.gz
(10.8 kB
view hashes)
Built Distribution
Close
Hashes for jacobs_jinja_too-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ea438c130bc3867a96855a2fa14d8648dc857aa33cced367712c615b65aa5ef |
|
MD5 | ba6ea97fec269835b14400904cbc09ac |
|
BLAKE2b-256 | 5c9055f237a98e1bf47283c7f607f3c5900a5601e0b04a63ca1f13ff812876eb |