Documentation ¶
Overview ¶
Package debug provides template functions to help debugging templates.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Namespace ¶
type Namespace struct {
// contains filtered or unexported fields
}
Namespace provides template functions for the "debug" namespace.
func (*Namespace) Dump ¶
Dump returns a object dump of val as a string. Note that not every value passed to Dump will print so nicely, but we'll improve on that.
We recommend using the "go" Chroma lexer to format the output nicely.
Also note that the output from Dump may change from Hugo version to the next, so don't depend on a specific output.
func (*Namespace) VisualizeSpaces ¶
VisualizeSpaces returns a string with spaces replaced by a visible string.
Click to show internal directories.
Click to hide internal directories.