helpers

package
v5.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Content = content.New()
View Source
var Debug = debug.New()
View Source
var Encoders = encoders.New()
View Source
var Env = env.New()
View Source
var Escapes = escapes.New()
View Source
var Inflections = inflections.New()
View Source
var Iterators = iterators.New()
View Source
var Meta = meta.New()
View Source
var Paths = paths.New()
View Source
var Text = text.New()

Functions

This section is empty.

Types

type HelperMap

type HelperMap struct {
	// contains filtered or unexported fields
}

HelperMap holds onto helpers and validates they are properly formed.

func NewMap

func NewMap(helpers map[string]interface{}) HelperMap

NewHelperMap containing all of the "default" helpers from "plush.Helpers".

func (*HelperMap) Add

func (h *HelperMap) Add(key string, helper interface{}) error

Add a new helper to the map. New Helpers will be validated to ensure they meet the requirements for a helper:

func (*HelperMap) AddMany

func (h *HelperMap) AddMany(helpers map[string]interface{}) error

AddMany helpers at the same time.

func (HelperMap) All

func (h HelperMap) All() map[string]interface{}

func (HelperMap) Helpers

func (h HelperMap) Helpers() map[string]interface{}

Helpers returns the underlying list of helpers from the map

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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