Std
The Std registry provides a set of standard functions for common tasks, included by default, making it easy to perform basic operations without additional setup.
hello
{{ hello }} // Output: Hello!default
{{ nil | default "default" }} // Output: "default"
{{ "" | default "default" }} // Output: "default"
{{ "first" | default "default" }} // Output: "first"
{{ "first" | default "default" "second" }} // Output: "second"empty
all
any
coalesce
ternary
cat
Last updated