新增: @use 同文件片段复用
支持 @use("name") 引用同一文件内 @tpl 定义的块,
消除 _list/_count 模板中 WHERE 条件重复问题。
This commit is contained in:
@@ -85,6 +85,13 @@ type CommentNode struct {
|
||||
|
||||
func (n *CommentNode) nodeType() string { return "Comment" }
|
||||
|
||||
type UseNode struct {
|
||||
Pos Pos
|
||||
Name string
|
||||
}
|
||||
|
||||
func (n *UseNode) nodeType() string { return "Use" }
|
||||
|
||||
type ExprType int
|
||||
|
||||
const (
|
||||
|
||||
Reference in New Issue
Block a user