Automatically generate files based on Jinja templates. Use it to easily generate complex Home Assistant dashboards!
Project description
MakeJinja
Installation
MakeJinja is available via pip
and can be installed via
pip install makejinja
Beware that depending on other packages installed on your system via pip, there may be incompatibilities.
Thus, we advise leveraging pipx
instead:
pipx install makejinja
Usage
Two arguments are required to work:
INPUT_FOLDER
containing the template files. It is passed to Jinja'sFileSystemLoader
when creating the environment.OUTPUT_FOLDER
as a location where the rendered templates are stored. MakeJinja preserves the relative paths in the process, meaning that you can even use it on nested directories.
To get an overview of the remaining options, we advise you to run makejinja --help
.
In its default configuration, MakeJinja searches the input folder recursively for files ending in .jinja
.
Also, we copy all contents (except raw template files) of the input folder to the output folder and remove the .jinja
ending during the render process.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for makejinja-0.6.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e251c750342a7d51f0a53e6cc2b8b88332a6edf5dd69acc23dd015831af1e260 |
|
MD5 | e7d6eaaa085d110106f1bf32fa89a081 |
|
BLAKE2b-256 | 7b301af8d633f02db48b3a2c3fb9a009df5d738c3d126530165b7b619676f486 |