mirror of
https://github.com/danog/liquid.git
synced 2024-11-30 07:18:58 +01:00
23 lines
427 B
Go
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
|
|
}
|