This commit is contained in:
maxbad 2024-06-21 14:34:52 +08:00
parent 7bf0efe667
commit b005c80ba6

View File

@ -91,7 +91,7 @@ func (s *sView) RenderTpl(ctx context.Context, tpl string, data ...model.View) {
}
content := ""
if !gres.IsEmpty() {
if !gres.IsEmpty() && gres.Contains(tpl) {
content = string(gres.GetContent(tpl))
} else {
content = gfile.GetContents(tpl)