mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-20 16:40:13 +01:00
🎨 The database template column supports queryBlocks function https://github.com/siyuan-note/siyuan/issues/10077
This commit is contained in:
parent
9b6cb211ab
commit
20cd2ac696
3 changed files with 31 additions and 28 deletions
|
|
@ -962,8 +962,8 @@ func renderTemplateCol(ial map[string]string, tplContent string, rowValues []*av
|
|||
ial["updated"] = time.UnixMilli(block.Block.Updated).Format("20060102150405")
|
||||
}
|
||||
|
||||
funcMap := util.BuiltInTemplateFuncs()
|
||||
goTpl := template.New("").Delims(".action{", "}")
|
||||
funcMap := util.BuiltInTemplateFuncs()
|
||||
tpl, tplErr := goTpl.Funcs(funcMap).Parse(tplContent)
|
||||
if nil != tplErr {
|
||||
logging.LogWarnf("parse template [%s] failed: %s", tplContent, tplErr)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue