No project description provided
Project description
jrender
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
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
jrender-1.1.tar.gz
(3.1 kB
view details)
Built Distribution
jrender-1.1-py3-none-any.whl
(3.4 kB
view details)
File details
Details for the file jrender-1.1.tar.gz
.
File metadata
- Download URL: jrender-1.1.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.7 Linux/6.5.0-5-amd64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d9e9794d615197c251f43ae4fd6f97248617dbd75e839bd3381f991e0c8f120 |
|
MD5 | 5255ff11e8e807b6f7f20b90eb86b761 |
|
BLAKE2b-256 | 713fe968de8b0c7f420d5114a871059765487d0719d04414ad1e4f07739663a4 |
File details
Details for the file jrender-1.1-py3-none-any.whl
.
File metadata
- Download URL: jrender-1.1-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.7 Linux/6.5.0-5-amd64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3dd99fed507b8ee568108dc0f3167f3ab72438f90dccbdfbbbaab76e060c38b1 |
|
MD5 | 41c30e22e01b6d35feb9025f8f4db779 |
|
BLAKE2b-256 | 06e7c04d47f7ec7c7eebfc1755c9d16ce87dd328a49af183f669ce86439c85d4 |