This commit is contained in:
Bjørn Erik Pedersen 2025-04-10 13:04:51 +02:00
commit 653f1c1d46
No known key found for this signature in database
987 changed files with 12379 additions and 14083 deletions

View file

@ -3,12 +3,11 @@ title: encoding.Base64Decode
description: Returns the base64 decoding of the given content.
categories: []
keywords: []
action:
aliases: [base64Decode]
related:
- functions/encoding/Base64Encode
returnType: string
signatures: [encoding.Base64Decode INPUT]
params:
functions_and_methods:
aliases: [base64Decode]
returnType: string
signatures: [encoding.Base64Decode INPUT]
aliases: [/functions/base64Decode]
---
@ -29,7 +28,7 @@ To retrieve and render the content:
{{ with try (resources.GetRemote $url) }}
{{ with .Err }}
{{ errorf "%s" . }}
{{ else with .Value}}
{{ else with .Value }}
{{ with . | transform.Unmarshal }}
{{ .content | base64Decode | markdownify }}
{{ end }}

View file

@ -3,12 +3,11 @@ title: encoding.Base64Encode
description: Returns the base64 decoding of the given content.
categories: []
keywords: []
action:
aliases: [base64Encode]
related:
- functions/encoding/Base64Decode
returnType: string
signatures: [encoding.Base64Encode INPUT]
params:
functions_and_methods:
aliases: [base64Encode]
returnType: string
signatures: [encoding.Base64Encode INPUT]
aliases: [/functions/base64, /functions/base64Encode]
---

View file

@ -3,14 +3,11 @@ title: encoding.Jsonify
description: Encodes the given object to JSON.
categories: []
keywords: []
action:
aliases: [jsonify]
returnType: template.HTML
related:
- functions/transform/Remarshal
- functions/transform/Unmarshal
signatures:
- encoding.Jsonify [OPTIONS] INPUT
params:
functions_and_methods:
aliases: [jsonify]
returnType: template.HTML
signatures: ['encoding.Jsonify [OPTIONS] INPUT']
aliases: [/functions/jsonify]
---
@ -34,4 +31,4 @@ prefix
: (`string`) Indentation prefix. Default is "".
noHTMLEscape
: (`bool`) Disable escaping of problematic HTML characters inside JSON quoted strings. The default behavior is to escape `&`, `<`, and `>` to `\u0026`, `\u003c`, and `\u003e` to avoid certain safety problems that can arise when embedding JSON in HTML. Default is `false`.
: (`bool`) Whether to disable escaping of problematic HTML characters inside JSON quoted strings. The default behavior is to escape `&`, `<`, and `>` to `\u0026`, `\u003c`, and `\u003e` to avoid certain safety problems that can arise when embedding JSON in HTML. Default is `false`.

View file

@ -1,12 +1,7 @@
---
title: Encoding functions
linkTitle: encoding
description: Template functions to encode and decode data.
description: Use these functions to encode and decode data.
categories: []
keywords: []
menu:
docs:
parent: functions
---
Use these functions to encode and decode data.