jinja2 template renderer
Project description
jiren
jiren is an application that generates text from templates. The format of the template is based on jinja2.
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
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
jiren-0.1.1.tar.gz
(3.2 kB
view hashes)
Built Distribution
jiren-0.1.1-py3-none-any.whl
(3.7 kB
view hashes)