JINJA

Renders JINJA2 files, and whole directories of files. Allows to render by pattern.

All includes and extends are by default looking in current working directory path.

:j2:render

Package to import Single task to import PIP package to install Stable version
rkd.standardlib.jinja rkd.standardlib.jinja.FileRendererTask pip install rkd== SELECT VERSION https://badgen.net/pypi/v/rkd

Renders a single file from JINJA2.

Example of usage:

rkd :j2:render -s SOURCE-FILE.yaml.j2 -o OUTPUT-FILE.yaml

:j2:directory-to-directory

Package to import Single task to import PIP package to install Stable version
rkd.standardlib.jinja rkd.standardlib.jinja.FileRendererTask pip install rkd== SELECT VERSION https://badgen.net/pypi/v/rkd

Renders all files recursively in given directory to other directory. Can remove source files after rendering them to the output files.

Pattern is a regexp pattern that matches whole path, not only file name

Example usage:

rkd :j2:directory-to-directory \
    --source="/some/path/templates" \
    --target="/some/path/rendered" \
    --delete-source-files \
    --pattern="(.*).j2"