2017-07-07 11:41:37 +02:00
|
|
|
package parser
|
|
|
|
|
2017-07-14 02:18:23 +02:00
|
|
|
import "github.com/osteele/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
|
2017-07-14 16:38:30 +02:00
|
|
|
Grammar Grammar
|
2017-07-21 04:32:06 +02:00
|
|
|
Delims []byte
|
2017-07-07 11:41:37 +02:00
|
|
|
}
|
|
|
|
|
2017-07-07 13:30:32 +02:00
|
|
|
// NewConfig creates a parser Config.
|
2017-07-10 18:23:46 +02:00
|
|
|
func NewConfig(g Grammar) Config {
|
2017-07-14 16:38:30 +02:00
|
|
|
return Config{Grammar: g}
|
2017-07-07 11:41:37 +02:00
|
|
|
}
|