1
0
mirror of https://github.com/danog/liquid.git synced 2024-12-02 16:47:48 +01:00
liquid/parser/config.go
2017-07-12 07:19:58 -04:00

17 lines
345 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
SourcePath string
LineNo int
}
// NewConfig creates a parser Config.
func NewConfig(g Grammar) Config {
return Config{Grammar: g, LineNo: 1}
}