Filters
The following filters were added to Contemplate. For a full list of filters, see the output of 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 base64 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: