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

Additions


→ 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.2.0.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for jinjanator_plugin_format_toml-23.2.0.tar.gz
Algorithm Hash digest
SHA256 b2de3bf5ab9a95c5c5a838f08991ed239d915c37a4ec0d7613d10c5a4d127003
MD5 41e9c6c37d1ec3189993754f1cdfb60c
BLAKE2b-256 9c6c61d20b33bb67de95b6ed8a48e4c5f053a48f1d7f400d7ec14c6b26e546e0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jinjanator_plugin_format_toml-23.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5bb622fea9c788468942821b22a778b9ff2c2621895e8773de4350080599420a
MD5 dec2f3caa30ffc4120f9be80f7db5be4
BLAKE2b-256 b276ab1f2c16a70f97c1a6c9698d279c0ea02df07cb074953cf78a31f813e3c2

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