Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // TemplateName is the name of the file containing // the markup of breadcrumbs TemplateName = "breadcrumbs" // EmbeddedExtension is extension of the embedded // template files. EmbeddedExtension = ".cms" )
Functions ¶
func Init ¶
func Init(d *deps.Deps, t *internal.TemplateDeps) *internal.FuncsNamespace
Creates a new Namespace and returns a new internal.FuncsNamespace
Types ¶
type Namespace ¶
type Namespace struct {
// contains filtered or unexported fields
}
Namespace defines the methods breadcrumbs posts to be used as template functions.
func New ¶
func New(d *deps.Deps, t *internal.TemplateDeps) *Namespace
Creates a new breadcrumbs Namespace
func (*Namespace) Get ¶
func (ns *Namespace) Get() verbis.Breadcrumbs
Get
Obtains the breadcrumbs for the post in a struct verbis.Breadcrumbs
Example: {{ $crumbs := breadcrumbs }}
Click to show internal directories.
Click to hide internal directories.