1
0
mirror of https://github.com/danog/liquid.git synced 2024-11-27 06:44:42 +01:00
liquid/context.go

16 lines
343 B
Go
Raw Normal View History

2017-07-02 05:52:38 +02:00
package liquid
type context struct {
bindings map[string]interface{}
}
// NewContext creates a new context from a variable binding map.
func NewContext(bindings map[string]interface{}) Context {
return &context{bindings}
}
// Bindings is in the Render interface.
func (c *context) Bindings() map[string]interface{} {
return c.bindings
}