Add print, printf, and println to the Hugo FuncMap so that they are
accessible to the apply template func.
Updates #3139
"partialCached": t.partialCached,
"plainify": plainify,
"pluralize": pluralize,
+ "print": fmt.Sprint,
+ "printf": fmt.Sprintf,
+ "println": fmt.Sprintln,
"querify": querify,
"readDir": t.readDirFromWorkingDir,
"readFile": t.readFileFromWorkingDir,
mod: {{mod 15 3}}
modBool: {{modBool 15 3}}
mul: {{mul 2 3}}
+print: {{ print "works!" }}
+printf: {{ printf "%s!" "works" }}
+println: {{ println "works!" -}}
plainify: {{ plainify "Hello <strong>world</strong>, gophers!" }}
pluralize: {{ "cat" | pluralize }}
querify 1: {{ (querify "foo" 1 "bar" 2 "baz" "with spaces" "qux" "this&that=those") | safeHTML }}
mod: 0
modBool: true
mul: 6
+print: works!
+printf: works!
+println: works!
plainify: Hello world, gophers!
pluralize: cats
querify 1: bar=2&baz=with+spaces&foo=1&qux=this%26that%3Dthose