mirror of
https://github.com/danog/liquid.git
synced 2024-12-02 16:47:48 +01:00
17 lines
345 B
Go
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}
|
|
}
|