Documentation ¶
Index ¶
- func ConstructMap(f Functor) template.FuncMap
- func FuncMapHTML() template.FuncMap
- func FuncMapJSXL() template.FuncMap
- func SprintfAttr(format string, args ...interface{}) template.HTMLAttr
- type Functor
- type HTMLFuncs
- func (f HTMLFuncs) ClassAllZero(x1, x2, y1, y2 interface{}, class string) template.HTMLAttr
- func (f HTMLFuncs) ClassNonNil(x interface{}, class, sndclass string) template.HTMLAttr
- func (f HTMLFuncs) ClassNonZero(x interface{}, class, sndclass string) template.HTMLAttr
- func (f HTMLFuncs) ClassPositive(x interface{}, class, sndclass string) template.HTMLAttr
- func (f HTMLFuncs) FuncHrefT() interface{}
- func (f HTMLFuncs) FuncLessD() interface{}
- func (f HTMLFuncs) FuncLessN() interface{}
- func (f HTMLFuncs) FuncMoreD() interface{}
- func (f HTMLFuncs) FuncMoreN() interface{}
- func (f HTMLFuncs) FuncVlink() interface{}
- func (f HTMLFuncs) IsStringZero(x interface{}) bool
- func (f HTMLFuncs) Key(_ string, x interface{}) (empty template.HTMLAttr)
- func (f HTMLFuncs) TitlePrefixed(prefix string, v interface{}) template.HTMLAttr
- type JSXLFuncs
- func (f JSXLFuncs) ClassAllZero(x1, x2, y1, y2 interface{}, class string) template.HTMLAttr
- func (f JSXLFuncs) ClassNonNil(x interface{}, class, sndclass string) template.HTMLAttr
- func (f JSXLFuncs) ClassNonZero(x interface{}, class, sndclass string) template.HTMLAttr
- func (f JSXLFuncs) ClassPositive(x interface{}, class, sndclass string) template.HTMLAttr
- func (f JSXLFuncs) ConcatClass(bclass, eclass string) string
- func (f JSXLFuncs) Dlink(v Uncurler, bclass, which, badge string) (params.ALink, error)
- func (f JSXLFuncs) FuncHrefT() interface{}
- func (f JSXLFuncs) FuncLessD() interface{}
- func (f JSXLFuncs) FuncLessN() interface{}
- func (f JSXLFuncs) FuncMoreD() interface{}
- func (f JSXLFuncs) FuncMoreN() interface{}
- func (f JSXLFuncs) FuncVlink() interface{}
- func (f JSXLFuncs) Key(prefix string, x interface{}) template.HTMLAttr
- func (f JSXLFuncs) Nlink(v Uncurler, bclass, which, badge string) (params.ALink, error)
- func (f JSXLFuncs) Split(v Uncurler) (string, string)
- func (f JSXLFuncs) TitlePrefixed(prefix string, v interface{}) template.HTMLAttr
- type Uncurler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConstructMap ¶
ConstructMaps constructs template.FuncMap off f implementation.
func FuncMapHTML ¶
func FuncMapJSXL ¶
func SprintfAttr ¶
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 (HTMLFuncs) ClassNonNil ¶
func (HTMLFuncs) ClassNonZero ¶
func (HTMLFuncs) ClassPositive ¶
func (HTMLFuncs) IsStringZero ¶
IsStringZero is internal (not required for interface)
type JSXLFuncs ¶
type JSXLFuncs struct{ templateutil.JSXLFuncs }
JSXLFuncs has methods implementing Functor.
func (JSXLFuncs) ClassAllZero ¶
func (JSXLFuncs) ClassNonNil ¶
func (JSXLFuncs) ClassNonZero ¶
func (JSXLFuncs) ClassPositive ¶
func (JSXLFuncs) ConcatClass ¶
ConcatClass is internal (not required for interface)
Click to show internal directories.
Click to hide internal directories.