runtime

package
v0.0.0-...-edb122a Latest Latest
Warning

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

Go to latest
Published: May 5, 2019 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FuncMap template.FuncMap = template.FuncMap{
	"__pug_binaryop":     Binary,
	"__pug_unaryop":      Unary,
	"__pug_nil":          Nil,
	"__pug_slice":        Slice,
	"__pug_map":          Map,
	"__pug_unescape":     Unescape,
	"__pug_unescapeattr": UnescapeAttr,
	"__pug_escapeattr":   EscapeAttr,
	"__pug_classnames":   ClassNames,
	"__pug_style":        Style,
}

Functions

func Binary

func Binary(op string, x, y interface{}) (interface{}, error)

func ClassNames

func ClassNames(vars ...interface{}) (string, error)

func EscapeAttr

func EscapeAttr(name string, val interface{}) template.HTMLAttr

func Map

func Map(variables ...interface{}) (pugmap, error)

func Nil

func Nil() interface{}

func Slice

func Slice(variables ...interface{}) interface{}

func Style

func Style(val interface{}) interface{}

func Unary

func Unary(op string, x interface{}) interface{}

func Unescape

func Unescape(val string) template.HTML

func UnescapeAttr

func UnescapeAttr(name string, val interface{}) template.HTMLAttr

Types

This section is empty.

Jump to

Keyboard shortcuts

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