Filters
The following filters were added to Contemplate. For a full list of filters available (including built-ins), use the debug() function:
base64encode
This base64-encodes a string or a list of bytes, returning a base64 encoded string.
Example:
hexencode
This hex-encodes a string or a list of bytes, returning a hex encoded string.
Example:
from_json
Constructs an object from a JSON string.
Example:
from_toml
Constructs an object from a TOML string.
Example:
from_yaml
Constructs an object from a YAML string.
Example:
jsonpath
Queries an object using a JSONPath expression, returning a list of matching values.
Example: