Documentation ¶
Index ¶
- func AddFilter(filter interface{}, name ...string)
- func BoolEval(oper string, lhs, rhs interface{}, contexts []interface{}) bool
- func CompEval(oper string, lhs, rhs interface{}, contexts []interface{}) bool
- func Date(arg interface{}, format string) interface{}
- func DivisibleBy(base_, by_ interface{}) bool
- func Eval(expr interface{}, contexts []interface{}) (interface{}, error)
- func Format(arg interface{}, format string) interface{}
- func GetFilter(name string) interface{}
- func Index(arg interface{}, idx_ interface{}) interface{}
- func IsTemplate(path string) bool
- func Join(arg interface{}, joiner string) string
- func Len(arg interface{}) int
- func Render(data string, context ...interface{}) string
- func RenderFile(filename string, context ...interface{}) string
- func RenderFileInLayout(filename string, layoutFile string, context ...interface{}) string
- func RenderInLayout(data string, layoutData string, context ...interface{}) string
- type Loader
- type Template
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DivisibleBy ¶
func DivisibleBy(base_, by_ interface{}) bool
func Eval ¶
func Eval(expr interface{}, contexts []interface{}) (interface{}, error)
run eval for something which is a cond or a conditional
func Index ¶
func Index(arg interface{}, idx_ interface{}) interface{}
Return the index of the argument at arg I
func IsTemplate ¶
func Len ¶
func Len(arg interface{}) int
Return the length of the argument, or 0 if that is not a valid action
func RenderFile ¶
func RenderFileInLayout ¶
func RenderInLayout ¶
Types ¶
type Loader ¶
type Loader struct { Path string Preload bool Loaded bool // contains filtered or unexported fields }
type Template ¶
type Template struct {
// contains filtered or unexported fields
}
func ParseString ¶
func (*Template) RenderInLayout ¶
Click to show internal directories.
Click to hide internal directories.