Skip to main content

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:

  1. INPUT_FOLDER containing the template files. It is passed to Jinja's FileSystemLoader when creating the environment.
  2. 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

makejinja-0.6.0.tar.gz (3.9 kB view hashes)

Uploaded Source

Built Distribution

makejinja-0.6.0-py3-none-any.whl (4.6 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