jinja2
Format text using jinja2 templates.
Reference
https://jinja.palletsprojects.com/en/2.10.x/
Actions
jinja2 Format
Generate a string using a defined jinja2 template.
Input
Name | Description | Type | Required | Syntax |
---|---|---|---|---|
Template | Jinja2 template to render. 'data' placeholder can be used to reference information contained within the flow. | script | True | True |
Custom Data | Additional key/value data that can be reference within the template using the 'customerData' placeholder. | json-input | False | True |
Output
Name | Description | Type | always_present | values |
---|---|---|---|---|
result | Returns True when successful. | boolean | True | {"True": {"description": "Successful."}, "False": {"description": "Failure."}} |
rc | Returns the exit code for the action. | number | True | {"0": {"description": "Successful."}} |
renderedTemplate | The plaintext rendered template. | text | True | `` |
____ |