1
0
mirror of https://github.com/danog/liquid.git synced 2024-11-30 07:18:58 +01:00
liquid/render/config.go
2017-07-09 11:49:24 -04:00

23 lines
427 B
Go

package render
import (
"github.com/osteele/liquid/parser"
)
// Config holds configuration information for parsing and rendering.
type Config struct {
parser.Config
tags map[string]TagCompiler
blockDefs map[string]*blockSyntax
}
// NewConfig creates a new Settings.
func NewConfig() Config {
c := Config{
tags: map[string]TagCompiler{},
blockDefs: map[string]*blockSyntax{},
}
c.Grammar = c
return c
}