and
Returns the first falsy argument. If all arguments are truthy, returns the last argument.
block
Defines a template and executes it in place.
break
Used with the range statement, stops the innermost iteration and bypasses all remaining iterations.
continue
Used with the range statement, stops the innermost iteration and continues to the next iteration.
define
Defines a template.
else
Begins an alternate block for if, with, and range statements.
end
Terminates if, with, range, block, and define statements.
if
Executes the block if the expression is truthy.
len
Returns the length of a string, slice, map, or collection.
not
Returns the boolean negation of its single argument.
or
Returns the first truthy argument. If all arguments are falsy, returns the last argument.
range
Iterates over a non-empty collection, binds context (the dot) to successive elements, and executes the block.
return
Used within partial templates, terminates template execution and returns the given value, if any.
template
Executes the given template, optionally passing context.
try
Returns a TryValue object after evaluating the given expression.
urlquery
Returns the escaped value of the textual representation of its arguments in a form suitable for embedding in a URL query.
with
Binds context (the dot) to the expression and executes the block if expression is truthy.