Encoding
The Encoding registry offers methods for encoding and decoding data in different formats, allowing for flexible data representation and storage within your templates.
base64Encode
{{ "Hello World" | base64Encode }} // Output: "SGVsbG8gV29ybGQ="base64Decode
{{ "SGVsbG8gV29ybGQ=" | base64Decode }} // Output: "Hello World"base32Encode
{{ "Hello World" | base32Encode }} // Output: "JBSWY3DPEBLW64TMMQQQ===="base32Decode
fromJson
toJson
toPrettyJson
toRawJson
fromYaml
toYaml
Last updated