Skip to main content

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

23.1.0 - 2023-08-03

Initial release!

→ Full Changelog

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

jinjanator_plugin_format_toml-23.1.0.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file jinjanator_plugin_format_toml-23.1.0.tar.gz.

File metadata

File hashes

Hashes for jinjanator_plugin_format_toml-23.1.0.tar.gz
Algorithm Hash digest
SHA256 edb490867ec54a880c6990ce899d18219a1ecbc72ad8bed00111271b6c6c8f33
MD5 0909ba87b6854f4fd445baebc65378b9
BLAKE2b-256 463d90e79f3a553c5fd0b400509520ee3daa01057d46c303d5a6b1c0d9e4a413

See more details on using hashes here.

File details

Details for the file jinjanator_plugin_format_toml-23.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for jinjanator_plugin_format_toml-23.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c1b765f3c1b94355b504f5fee694646c5f2faf937e713abbe8000feac84e82d4
MD5 521a77cb8f97d60f7c4fd59ac1c0629e
BLAKE2b-256 506149fdf75cd515fcb43fd99d5cd137d804a7441ce61cb6d617e6653b82fcd3

See more details on using hashes here.

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