1
0
mirror of https://github.com/danog/liquid.git synced 2024-12-11 17:19:40 +01:00
liquid/parser/config.go

17 lines
339 B
Go

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