From fadd20bb0bdc50a945f1f7113640e36ef5eb3fd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Sun, 6 Mar 2016 15:44:17 +0100 Subject: [PATCH] Add list support in Scratch --- content/extras/scratch.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/content/extras/scratch.md b/content/extras/scratch.md index 4788a75f0..187339863 100644 --- a/content/extras/scratch.md +++ b/content/extras/scratch.md @@ -21,7 +21,9 @@ weight: 80 * `SetInMap` takes a `key`, `mapKey` and `value` * `GetSortedMapValues` returns array of values from `key` sorted by `mapKey` -`Set` and `SetInMap` can store values of any type. `Add` accepts values that support Go's `+` operator. +`Set` and `SetInMap` can store values of any type. + +For single values, `Add` accepts values that support Go's `+` operator. If the first `Add` for a key is an array or slice, the follwing adds will be appended to that list. The scope of the backing data is global for the given `Node` or `Page`, and spans partial and shortcode includes.