mirror of
https://github.com/danog/liquid.git
synced 2024-12-02 14:37:50 +01:00
92a4f2d500
Fixes a race condition
15 lines
298 B
Go
15 lines
298 B
Go
package parser
|
|
|
|
import "github.com/osteele/liquid/expressions"
|
|
|
|
// A Config holds configuration information for parsing and rendering.
|
|
type Config struct {
|
|
expressions.Config
|
|
Grammar Grammar
|
|
}
|
|
|
|
// NewConfig creates a parser Config.
|
|
func NewConfig(g Grammar) Config {
|
|
return Config{Grammar: g}
|
|
}
|