Skip to main content

No project description provided

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jrender-1.1.tar.gz (3.1 kB view hashes)

Uploaded Source

Built Distribution

jrender-1.1-py3-none-any.whl (3.4 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