A Wishbone function module to render Jinja2 templates.
Project description
__ __ __ .--.--.--|__.-----| |--| |--.-----.-----.-----. | | | | |__ --| | _ | _ | | -__| |________|__|_____|__|__|_____|_____|__|__|_____| version 2.1.2 Build composable event pipeline servers with minimal effort. ========================== wishbone.function.template ========================== Version: 1.0.0 A Wishbone module which generates a text from a dictionary and a template. -------------------------------------------------------------------------- Converts a dictionary to a text using the defined Jinja2 template. Optionally header template values can be converted too. Parameters: - location(str)("./") | The directory containing templates. - template(str)()* | The template filename stored in directory <location>. - source(str)("@data")* | The dictionary to use. - destination(str)("@data")* | The location to which the rendered result has to be stored. - header_templates(dict)({})* | A dict of templates to render. Can be lookup values. | Results are stored in this module's instance header | using the provided key. Queues: - inbox | Incoming events - outbox | Outgoing events
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
File details
Details for the file wishbone_function_template-1.0.1.tar.gz
.
File metadata
- Download URL: wishbone_function_template-1.0.1.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 330eb1222c13951a8dc7ab54c6548ef0ec8da585e3e57a07a0f8f73700d0a222 |
|
MD5 | f799ca50f934d12f1eacbd34fdfd74ae |
|
BLAKE2b-256 | f72cfecf6077a7a48dc278b91610bab67cdd0a54992f1c95f40683a3bde71ac7 |