1
0
mirror of https://github.com/danog/liquid.git synced 2024-11-30 06:48:58 +01:00
liquid/parser/config.go

16 lines
314 B
Go
Raw Permalink Normal View History

2017-07-07 11:41:37 +02:00
package parser
2022-01-06 18:43:17 +01:00
import "github.com/danog/liquid/expressions"
2017-07-07 11:41:37 +02:00
2017-07-07 13:30:32 +02:00
// A Config holds configuration information for parsing and rendering.
2017-07-07 11:41:37 +02:00
type Config struct {
2017-07-14 02:18:23 +02:00
expressions.Config
Grammar Grammar
2017-07-24 04:38:02 +02:00
Delims []string
2017-07-07 11:41:37 +02:00
}
2017-07-07 13:30:32 +02:00
// NewConfig creates a parser Config.
func NewConfig(g Grammar) Config {
return Config{Grammar: g}
2017-07-07 11:41:37 +02:00
}