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
Backwards-incompatible Changes
-
Added support for Python 3.13, and removed support for Python 3.8.
-
Upgraded to version 24.2.0 of jinjanator-plugins.
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
Built Distribution
File details
Details for the file jinjanator_plugin_format_toml-24.2.0.tar.gz
.
File metadata
- Download URL: jinjanator_plugin_format_toml-24.2.0.tar.gz
- Upload date:
- Size: 9.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1577663eba0d13191bab6fffa21a3ce1b3625eaa3e531dc50891d9a9f12b2f9c |
|
MD5 | 58d75a7ae659f762cb255fe00b3b7598 |
|
BLAKE2b-256 | a6b3f6561f7e45b38606dec2c6a8ca034a589e94f97fd1d5fc9cd6ccbc8ad1a9 |
File details
Details for the file jinjanator_plugin_format_toml-24.2.0-py3-none-any.whl
.
File metadata
- Download URL: jinjanator_plugin_format_toml-24.2.0-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 956c54e31dc34335f606f36136f8feb629e50852b8b8a12527d5f21b700f1aca |
|
MD5 | 4cc6988cb65c7fd2a48ca6135ddfa89d |
|
BLAKE2b-256 | 59d35bc7c46b4eff945a14a2b06ffcff8e3747d4fc1774193537ce56e1a793be |