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

This commit is contained in:
Daniel 2023-10-01 18:37:39 +08:00
parent b4bded40e3
commit 4fdd0ddef0
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 33 additions and 26 deletions

View file

@ -354,8 +354,8 @@ type ValueTemplate struct {
Content string `json:"content"`
}
func (t *ValueTemplate) Render(blockID string, r func(blockID string) string) {
t.Content = r(blockID)
func (t *ValueTemplate) Render(blockID, tplContent string, r func(blockID, tplContent string) string) {
t.Content = r(blockID, tplContent)
}
// View 描述了视图的结构。