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.8.tar.gz
(10.9 kB
view details)
Built Distribution
File details
Details for the file jacobs-jinja-too-0.0.8.tar.gz
.
File metadata
- Download URL: jacobs-jinja-too-0.0.8.tar.gz
- Upload date:
- Size: 10.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62e41795f1dd9b76eaa74122af2db975b9b41003374afab9c3d1c3b634af10b7 |
|
MD5 | 2e1298dc0eb0be15949e74bf61a79073 |
|
BLAKE2b-256 | 074730cfb6532ea0fb1e0cd89eca65e7e8e07123a05b97e1348db94931d7c7c8 |
File details
Details for the file jacobs_jinja_too-0.0.8-py3-none-any.whl
.
File metadata
- Download URL: jacobs_jinja_too-0.0.8-py3-none-any.whl
- Upload date:
- Size: 11.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e1d9bfc5055a9cf43edf8fa091634d28387e55129aa2291a8c38fb3e2a2d4f6 |
|
MD5 | d13d4dc4e48acba5436497fc977ace52 |
|
BLAKE2b-256 | 2e67abde1f59165f1aa2f198d0cf3abb13e85bccb7e252b63eb576ac2921ed6f |