mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-08-26 16:46:14 +08:00
fix #100
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user