From c42463e7be58fa9c9d71eabe0606d718caad93b7 Mon Sep 17 00:00:00 2001 From: Rhyker Wells Date: Thu, 20 Feb 2025 15:37:40 +0000 Subject: [PATCH 1/2] docs(functions): Add missing (sort) function in syntax documentation --- content/docs/reference/templates/functions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/docs/reference/templates/functions.md b/content/docs/reference/templates/functions.md index f8d118c..ab2b41b 100644 --- a/content/docs/reference/templates/functions.md +++ b/content/docs/reference/templates/functions.md @@ -2402,7 +2402,7 @@ start index and the subslice extends to the end of `item`. #### sort ```yag -{{ $sorted := [options] }} +{{ $sorted := sort [options] }} ``` Returns the given list in a sorted order. The list's items must all be of the same type. The optional `options` argument From 11eaea3c3695fc6c8616f5572dcc72e8d059eb3c Mon Sep 17 00:00:00 2001 From: Rhyker Wells Date: Thu, 20 Feb 2025 15:37:59 +0000 Subject: [PATCH 2/2] docs(functions): Add missing (printf) function in syntax documentation --- content/docs/reference/templates/functions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/docs/reference/templates/functions.md b/content/docs/reference/templates/functions.md index ab2b41b..77e021b 100644 --- a/content/docs/reference/templates/functions.md +++ b/content/docs/reference/templates/functions.md @@ -1724,7 +1724,7 @@ the end. #### printf ```yag -{{ $result := }} +{{ $result := printf }} ``` Interpolates `args...` according to `format`. See the [Go `fmt` package documentation](https://pkg.go.dev/fmt).