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
- Host: GitHub
- URL: https://github.com/pearmaster/jacobs-jinja-too
- Owner: pearmaster
- License: gpl-2.0
- Created: 2020-02-25T04:25:20.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-01-11T18:55:23.000Z (over 1 year ago)
- Last Synced: 2025-02-27T18:32:07.024Z (4 months ago)
- Language: Python
- Size: 26.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Jacob's Jinja Too
[](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 jj2t = 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.