An open API service indexing awesome lists of open source software.

https://github.com/pearmaster/jacobs-jinja-too

Simple wrapper around jinja2 templating
https://github.com/pearmaster/jacobs-jinja-too

Last synced: 3 months ago
JSON representation

Simple wrapper around jinja2 templating

Awesome Lists containing this project

README

        

# Jacob's Jinja Too

[![CircleCI](https://circleci.com/gh/pearmaster/jacobs-jinja-too/tree/master.svg?style=shield)](https://circleci.com/gh/pearmaster/jacobs-jinja-too/tree/master)

A simple wrapper around Jinja2 templating with a collection of custom filters. [Jinja2](https://jinja.palletsprojects.com/en/2.11.x/) 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:

```plantuml
[Top Level Project] --> [jacobs-jinja-too] : uses
[Top Level Project] --> [Another Project] : depends
[Another Project] --> [jacobs-jinja-too] : uses
```

## Installation

```sh
pip3 install jacobs-jinja-too
```

## Example Usage

```python
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.