mirror of
https://github.com/danog/liquid.git
synced 2024-12-02 12:17:48 +01:00
26 lines
476 B
Go
26 lines
476 B
Go
package render
|
|
|
|
import (
|
|
"github.com/osteele/liquid/parser"
|
|
)
|
|
|
|
// Config holds configuration information for parsing and rendering.
|
|
type Config struct {
|
|
parser.Config
|
|
grammar
|
|
}
|
|
|
|
type grammar struct {
|
|
tags map[string]TagCompiler
|
|
blockDefs map[string]*blockSyntax
|
|
}
|
|
|
|
// NewConfig creates a new Settings.
|
|
func NewConfig() Config {
|
|
g := grammar{
|
|
tags: map[string]TagCompiler{},
|
|
blockDefs: map[string]*blockSyntax{},
|
|
}
|
|
return Config{parser.NewConfig(g), g}
|
|
}
|