mirror of
https://github.com/danog/liquid.git
synced 2024-11-27 08:34:42 +01:00
33 lines
374 B
Go
33 lines
374 B
Go
package chunks
|
|
|
|
import (
|
|
"io"
|
|
)
|
|
|
|
type AST interface {
|
|
Render(io.Writer, Context) error
|
|
}
|
|
|
|
type ASTSeq struct {
|
|
Children []AST
|
|
}
|
|
|
|
type ASTChunks struct {
|
|
chunks []Chunk
|
|
}
|
|
|
|
type ASTText struct {
|
|
chunk Chunk
|
|
}
|
|
|
|
type ASTObject struct {
|
|
chunk Chunk
|
|
}
|
|
|
|
type ASTControlTag struct {
|
|
chunk Chunk
|
|
cd *ControlTagDefinition
|
|
body []AST
|
|
branches []*ASTControlTag
|
|
}
|