encoding
Encoding is Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
encoding.Base64Decode
Base64Decode returns the base64 decoding of the given content
.
Aliases: base64Decode
Examples
{{ "SGVsbG8gd29ybGQ=" | base64Decode }}
Hello world
{{ 42 | base64Encode | base64Decode }}
42
encoding.Base64Encode
Base64Encode returns the base64 encoding of the given content
.
Aliases: base64Encode
Examples
{{ "Hello world" | base64Encode }}
SGVsbG8gd29ybGQ=
encoding.Jsonify
(args …any) → template.HTML
Jsonify encodes a given object to JSON. To pretty print the JSON, pass a map or dictionary of options as the first argument. Supported options are “prefix” and “indent”. Each JSON element in the output will begin on a new line beginning with prefix followed by one or more copies of indent according to the indentation nesting.
Aliases: jsonify
Examples
{{ (slice "A" "B" "C") | jsonify }}
["A","B","C"]
{{ (slice "A" "B" "C") | jsonify (dict "indent" " ") }}
[
"A",
"B",
"C"
]