1
0
mirror of https://github.com/danog/liquid.git synced 2024-12-02 14:37:50 +01:00
liquid/parser/config.go
Oliver Steele 92a4f2d500 Source location is an initialization parameter
Fixes a race condition
2017-07-14 10:38:30 -04:00

15 lines
298 B
Go

package parser
import "github.com/osteele/liquid/expressions"
// A Config holds configuration information for parsing and rendering.
type Config struct {
expressions.Config
Grammar Grammar
}
// NewConfig creates a parser Config.
func NewConfig(g Grammar) Config {
return Config{Grammar: g}
}