diff --git a/content/templates/functions.md b/content/templates/functions.md index 146ab8e93..979e603f9 100644 --- a/content/templates/functions.md +++ b/content/templates/functions.md @@ -112,6 +112,14 @@ e.g. {{ .Render "summary" }} {{ end }} + +### jsonify +Encodes a given object to JSON. + +e.g. + + {{ dict "title" .Title "content" .Plain | jsonify }} + ### last Slices an array to only the last _N_ elements.