🎨 Creating a dailynote template supports doc attributes https://github.com/siyuan-note/siyuan/issues/10698

This commit is contained in:
Daniel 2024-03-22 19:46:48 +08:00
parent 45df03aede
commit 8b7e6661f5
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
3 changed files with 28 additions and 20 deletions

View file

@ -85,7 +85,7 @@ func renderTemplate(c *gin.Context) {
preview = previewArg.(bool)
}
content, err := model.RenderTemplate(p, id, preview)
_, content, err := model.RenderTemplate(p, id, preview)
if nil != err {
ret.Code = -1
ret.Msg = util.EscapeHTML(err.Error())