breadcrumbs

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 23, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

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

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

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 }}

func (*Namespace) HTML

func (ns *Namespace) HTML() template.HTML

HTML

Returns the breadcrumbs already constructed as HTML data.

Example: {{ $crumbs := breadcrumbsHTML }}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL