mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-02-02 18:28:41 +08:00
fix #100
This commit is contained in:
parent
7bf0efe667
commit
b005c80ba6
@ -91,7 +91,7 @@ func (s *sView) RenderTpl(ctx context.Context, tpl string, data ...model.View) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
content := ""
|
content := ""
|
||||||
if !gres.IsEmpty() {
|
if !gres.IsEmpty() && gres.Contains(tpl) {
|
||||||
content = string(gres.GetContent(tpl))
|
content = string(gres.GetContent(tpl))
|
||||||
} else {
|
} else {
|
||||||
content = gfile.GetContents(tpl)
|
content = gfile.GetContents(tpl)
|
||||||
|
Loading…
Reference in New Issue
Block a user