Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tpl/template_funcs_test.go')
-rw-r--r--tpl/template_funcs_test.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/tpl/template_funcs_test.go b/tpl/template_funcs_test.go
index 3f7f6cb64..bccee4c9e 100644
--- a/tpl/template_funcs_test.go
+++ b/tpl/template_funcs_test.go
@@ -103,6 +103,7 @@ modBool: {{modBool 15 3}}
mul: {{mul 2 3}}
plainify: {{ plainify "Hello <strong>world</strong>, gophers!" }}
pluralize: {{ "cat" | pluralize }}
+querify: {{ (querify "foo" 1 "bar" 2 "baz" "with spaces").Encode | safeHTML }}
readDir: {{ range (readDir ".") }}{{ .Name }}{{ end }}
readFile: {{ readFile "README.txt" }}
relURL 1: {{ "http://gohugo.io/" | relURL }}
@@ -154,6 +155,7 @@ modBool: true
mul: 6
plainify: Hello world, gophers!
pluralize: cats
+querify: bar=2&baz=with%2Bspaces&foo=1
readDir: README.txt
readFile: Hugo Rocks!
relURL 1: http://gohugo.io/