Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 821 Bytes

File metadata and controls

29 lines (20 loc) · 821 Bytes

jrender

PyPI - Version

jrender is a command-line tool that renders Jinja template files using a context built from YAML files and mappings supplied on the command line. It is primarily designed for quickly testing template files.

Installation

Requires Python version 3.9 or higher and pip.

pip install jrender

Example

# Create a template file
> echo "Hello {{name}}" > hello.jinja

# Render the template by supplying values
> jrender hello.jinja name=World

# Values provided through the command line are always interpreted as strings. For other data types or more complex data
# structures, provide the context in a YAML file.
> jrender hello.jinja -f vars.yaml