package debug
import "github.com/gohugoio/hugo/tpl/debug"
Package debug provides template functions to help debugging templates.
Index ¶
Package Files ¶
debug.go init.go
type Namespace ¶
type Namespace struct { }
Namespace provides template functions for the "debug" namespace.
func New ¶
New returns a new instance of the debug-namespaced template functions.
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.
- Version
- v0.101.0 (latest)
- Published
- Jun 16, 2022
- Platform
- linux/amd64
- Imports
- 3 packages (graph)
- Last checked
- 3 hours ago –
Tools for package owners.