templatefunc

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2015 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConstructMap

func ConstructMap(f Functor) template.FuncMap

ConstructMaps constructs template.FuncMap off f implementation.

func FuncMapHTML

func FuncMapHTML() template.FuncMap

func FuncMapJSXL

func FuncMapJSXL() template.FuncMap

func SprintfAttr

func SprintfAttr(format string, args ...interface{}) template.HTMLAttr

Types

type Functor

type Functor interface {
	templateutil.Functor

	TitlePrefixed(string, interface{}) template.HTMLAttr
	ClassAllZero(interface{}, interface{}, interface{}, interface{}, string) template.HTMLAttr
	ClassNonNil(interface{}, string, string) template.HTMLAttr
	ClassNonZero(interface{}, string, string) template.HTMLAttr
	ClassPositive(interface{}, string, string) template.HTMLAttr
	Key(string, interface{}) template.HTMLAttr

	FuncHrefT() interface{}
	FuncLessD() interface{}
	FuncMoreD() interface{}
	FuncLessN() interface{}
	FuncMoreN() interface{}
	FuncVlink() interface{}
}

type HTMLFuncs

type HTMLFuncs struct {
	// templateutil.Functor
	templateutil.HTMLFuncs
	params.ParamsFuncs
}

HTMLFuncs has methods implementing Functor.

func (HTMLFuncs) ClassAllZero

func (f HTMLFuncs) ClassAllZero(x1, x2, y1, y2 interface{}, class string) template.HTMLAttr

func (HTMLFuncs) ClassNonNil

func (f HTMLFuncs) ClassNonNil(x interface{}, class, sndclass string) template.HTMLAttr

func (HTMLFuncs) ClassNonZero

func (f HTMLFuncs) ClassNonZero(x interface{}, class, sndclass string) template.HTMLAttr

func (HTMLFuncs) ClassPositive

func (f HTMLFuncs) ClassPositive(x interface{}, class, sndclass string) template.HTMLAttr

func (HTMLFuncs) FuncHrefT

func (f HTMLFuncs) FuncHrefT() interface{}

func (HTMLFuncs) FuncLessD

func (f HTMLFuncs) FuncLessD() interface{}

func (HTMLFuncs) FuncLessN

func (f HTMLFuncs) FuncLessN() interface{}

func (HTMLFuncs) FuncMoreD

func (f HTMLFuncs) FuncMoreD() interface{}

func (HTMLFuncs) FuncMoreN

func (f HTMLFuncs) FuncMoreN() interface{}
func (f HTMLFuncs) FuncVlink() interface{}

func (HTMLFuncs) IsStringZero

func (f HTMLFuncs) IsStringZero(x interface{}) bool

IsStringZero is internal (not required for interface)

func (HTMLFuncs) Key

func (f HTMLFuncs) Key(_ string, x interface{}) (empty template.HTMLAttr)

Key returns empty attribute.

func (HTMLFuncs) TitlePrefixed

func (f HTMLFuncs) TitlePrefixed(prefix string, v interface{}) template.HTMLAttr

type JSXLFuncs

type JSXLFuncs struct{ templateutil.JSXLFuncs }

JSXLFuncs has methods implementing Functor.

func (JSXLFuncs) ClassAllZero

func (f JSXLFuncs) ClassAllZero(x1, x2, y1, y2 interface{}, class string) template.HTMLAttr

func (JSXLFuncs) ClassNonNil

func (f JSXLFuncs) ClassNonNil(x interface{}, class, sndclass string) template.HTMLAttr

func (JSXLFuncs) ClassNonZero

func (f JSXLFuncs) ClassNonZero(x interface{}, class, sndclass string) template.HTMLAttr

func (JSXLFuncs) ClassPositive

func (f JSXLFuncs) ClassPositive(x interface{}, class, sndclass string) template.HTMLAttr

func (JSXLFuncs) ConcatClass

func (f JSXLFuncs) ConcatClass(bclass, eclass string) string

ConcatClass is internal (not required for interface)

func (f JSXLFuncs) Dlink(v Uncurler, bclass, which, badge string) (params.ALink, error)

func (JSXLFuncs) FuncHrefT

func (f JSXLFuncs) FuncHrefT() interface{}

func (JSXLFuncs) FuncLessD

func (f JSXLFuncs) FuncLessD() interface{}

func (JSXLFuncs) FuncLessN

func (f JSXLFuncs) FuncLessN() interface{}

func (JSXLFuncs) FuncMoreD

func (f JSXLFuncs) FuncMoreD() interface{}

func (JSXLFuncs) FuncMoreN

func (f JSXLFuncs) FuncMoreN() interface{}
func (f JSXLFuncs) FuncVlink() interface{}

func (JSXLFuncs) Key

func (f JSXLFuncs) Key(prefix string, x interface{}) template.HTMLAttr

Key returns key attribute: prefix + uncurled x being an Uncurler.

func (f JSXLFuncs) Nlink(v Uncurler, bclass, which, badge string) (params.ALink, error)

Nlink is internal (not required for interface)

func (JSXLFuncs) Split

func (f JSXLFuncs) Split(v Uncurler) (string, string)

Split is internal (not required for interface)

func (JSXLFuncs) TitlePrefixed

func (f JSXLFuncs) TitlePrefixed(prefix string, v interface{}) template.HTMLAttr

type Uncurler

type Uncurler interface {
	Uncurl() string
}

Jump to

Keyboard shortcuts

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