mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-03 23:38:49 +01:00
🎨 Shallow clone the corresponding database when the template contains database blocks https://github.com/siyuan-note/siyuan/issues/9494
This commit is contained in:
parent
7145460c18
commit
8ad15c4d23
3 changed files with 14 additions and 7 deletions
|
|
@ -80,7 +80,12 @@ func renderTemplate(c *gin.Context) {
|
|||
return
|
||||
}
|
||||
|
||||
content, err := model.RenderTemplate(p, id)
|
||||
preview := false
|
||||
if previewArg := arg["preview"]; nil != previewArg {
|
||||
preview = previewArg.(bool)
|
||||
}
|
||||
|
||||
content, err := model.RenderTemplate(p, id, preview)
|
||||
if nil != err {
|
||||
ret.Code = -1
|
||||
ret.Msg = util.EscapeHTML(err.Error())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue