Skip to main content

Simple wrapper around jinja2 templating

Project description

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.

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 hashes)

Uploaded Source

Built Distribution

jacobs_jinja_too-0.0.8-py3-none-any.whl (11.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page