/jacobs-jinja-too

Simple wrapper around jinja2 templating

Primary LanguagePythonGNU General Public License v2.0GPL-2.0

Jacob's Jinja Too

CircleCI

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.