1
0
mirror of https://github.com/danog/liquid.git synced 2024-11-27 01:34:41 +01:00
liquid/liquid.go
2017-07-15 13:29:53 -04:00

33 lines
1.2 KiB
Go

/*
Package liquid is a pure Go implementation of Shopify Liquid templates, developed for use in https://github.com/osteele/gojekyll.
See the project README https://github.com/osteele/liquid for additional information and implementation status.
The liquid package itself is versioned in gopkg.in. Subpackages have no compatibility guarantees. Except where specifically documented, the “public” entities of subpackages are intended only for use by the liquid package and its subpackages.
*/
package liquid
import (
"github.com/osteele/liquid/render"
)
// Bindings is a map of variable names to values.
//
// Clients need not use this type. It is used solely for documentation. Callers can use instances
// of map[string]interface{} itself as argument values to functions declared with this parameter type.
type Bindings map[string]interface{}
// A Renderer returns the rendered string for a block. This is the type of a tag definition.
//
// See the examples at Engine.RegisterTag and Engine.RegisterBlock.
type Renderer func(render.Context) (string, error)
// SourceError records an error with a source location and optional cause.
type SourceError interface {
error
Cause() error
Path() string
LineNumber() int
}