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.7.tar.gz
(10.9 kB
view hashes)
Built Distribution
Close
Hashes for jacobs_jinja_too-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47164d21e4bff4d228f1902cd39628390cc1a53b0b6b18762456e7aba9e2c4b4 |
|
MD5 | 18bf015240aaeeea99b9ec5a21bdbcc5 |
|
BLAKE2b-256 | b09dbbd42c841b9e68ca337cea38e10b0216364f4a051ebbb36de533848fdafd |