🎨 Add template type column to Attribute View https://github.com/siyuan-note/siyuan/issues/8766

This commit is contained in:
Daniel 2023-10-01 17:16:08 +08:00
parent b981fa08a0
commit dbdddd7ff3
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -237,7 +237,8 @@ func renderAttributeViewTable(attrView *av.AttributeView, view *av.View) (ret *a
goTpl := template.New("").Delims(".action{", "}")
tpl, tplErr := goTpl.Funcs(funcMap).Parse(tableCell.Value.Template.Content)
if nil != tplErr {
logging.LogWarnf("parse template [%s] failed: %s", tableCell.Value.Template.Content, err)
logging.LogWarnf("parse template [%s] failed: %s", tableCell.Value.Template.Content, tplErr)
return ""
}
buf := &bytes.Buffer{}