Plugin which provides TOML format (data input) support for jinjanator
Project description
jinjanator-plugin-format-toml: Provides TOML format (data input) support for jinjanator
This plugin allows jinjanator to parse TOML data for processing in
templates. The format can be selected using --format toml
or
autoselected by using a data file with a name ending with .toml
.
Installation
pip install jinjanator-plugin-format-toml
Usage
Suppose you have an NGINX configuration file template, nginx.j2
:
server {
listen 80;
server_name {{ nginx.hostname }};
root {{ nginx.webroot }};
index index.htm;
}
And you have a TOML file with the data, nginx.toml
:
[nginx]
hostname="localhost"
webroot="/var/www/project"
This is how you render it into a working configuration file:
$ jinjanate nginx.j2 nginx.toml > nginx.conf
Options
This format does not support any options.
Release Information
Changes
- Upgraded to version 24.1 of jinjanator-plugins.
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
Built Distribution
Close
Hashes for jinjanator_plugin_format_toml-24.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82ab9633d8c3f33d53df169e507a661b7d690878d97acbaec8373a7868c71583 |
|
MD5 | 3438db0017359f0c5ea16a58df2403c1 |
|
BLAKE2b-256 | aec1662fb30133dd8234654dbbeca88a8eaea78e12189ee60f0636e24e48a119 |
Close
Hashes for jinjanator_plugin_format_toml-24.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d84fda150e9c684123d78726ce3e1f294b0b9de05d042cdb6813cb2d57a16215 |
|
MD5 | 8e6a3ab3d53b9f81535fcc6a91c49f07 |
|
BLAKE2b-256 | dff91c0fbd58f5d43d27c245d2563e6abe82c270b6578d397906baf5653afe00 |