新增: @use 同文件片段复用

支持 @use("name") 引用同一文件内 @tpl 定义的块,
消除 _list/_count 模板中 WHERE 条件重复问题。
This commit is contained in:
2026-04-01 01:59:51 +08:00
parent a6847c7d18
commit 1b5b6aff8f
7 changed files with 190 additions and 8 deletions

View File

@@ -1,4 +1,3 @@
# u-tpl
实现一套 模板解析引擎,
@@ -6,8 +5,4 @@
使用场景,现代 sql 模板管理ai友好
语言golang
# 维护到 git 仓库, (暂时先不要提交,只暂缓到本地)
git remote add origin https://gitea.1216.top/lxy/u-tpl.git
git push -u origin main
语言golang