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

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.


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

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for jinjanator_plugin_format_toml-24.2.0.tar.gz
Algorithm Hash digest
SHA256 1577663eba0d13191bab6fffa21a3ce1b3625eaa3e531dc50891d9a9f12b2f9c
MD5 58d75a7ae659f762cb255fe00b3b7598
BLAKE2b-256 a6b3f6561f7e45b38606dec2c6a8ca034a589e94f97fd1d5fc9cd6ccbc8ad1a9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jinjanator_plugin_format_toml-24.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 956c54e31dc34335f606f36136f8feb629e50852b8b8a12527d5f21b700f1aca
MD5 4cc6988cb65c7fd2a48ca6135ddfa89d
BLAKE2b-256 59d35bc7c46b4eff945a14a2b06ffcff8e3747d4fc1774193537ce56e1a793be

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