Skip to main content

jinja2 template renderer

Project description

jiren

jiren is an application that generates text from templates. The format of the template is based on jinja2.

PyPI PyPI - Python Version Build Status codecov

Read this in Japanese: 日本語

Installation

pip install jiren

Usage

Generate text from a template using the jiren command. The jiren command can read templates from stdin.

Command:

echo "hello, {{ message }}" | jiren --message=world

Output:

hello, world

In this example, the template contains a variable called message. If you want to know more about template format, please refer to jinja2 document ( http://jinja.pocoo.org/ ).

You can use the help to check the variables defined in the template.

Command:

echo "hello, {{ message }}" | jiren --help

Output:

usage: jiren [-h] [--message MESSAGE]

optional arguments:
  -h, --help         show this help message and exit
  --message MESSAGE

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

jiren-0.1.1.tar.gz (3.2 kB view hashes)

Uploaded Source

Built Distribution

jiren-0.1.1-py3-none-any.whl (3.7 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