hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit c7d2260420b39d82b30c20b450478866f7521282
parent c7acc318b5f48bad1af18f134d0e9308879abd17
Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date:   Sun,  6 Mar 2016 16:36:46 +0100

doc: Add some Scratch slice samples

Diffstat:
Mdocs/content/extras/scratch.md | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/docs/content/extras/scratch.md b/docs/content/extras/scratch.md
@@ -42,6 +42,11 @@ The usage is best illustrated with some samples:
 {{ $.Scratch.Add "a2" "CD" }}
 {{ $.Scratch.Get "a2" }} {{/* => ABCD */}}
 
+{{ $.Scratch.Add "l1" (slice "A" "B") }}
+{{ $.Scratch.Get "l1" }} {{/* => [A B]  */}}
+{{ $.Scratch.Add "l1" (slice "C" "D") }}
+{{ $.Scratch.Get "l1" }} {{/* => [[A B C D] ] */}}
+
 {{ $.Scratch.Set "v1" 123 }}
 {{ $.Scratch.Get "v1" }}  {{/* => 123 */}}