gf icon indicating copy to clipboard operation
gf copied to clipboard

模板引擎-模板文件后缀,必须跟 define template 的文件后缀保持一致

Open sanrentai opened this issue 2 years ago • 1 comments

1. What version of Go and system type/arch are you using?

go1.17.1 windows/amd64

2. What version of GoFrame are you using?

2.0.6

3. Can this issue be re-produced with the latest release?

yes

4. What did you do?

(https://goframe.org/pages/viewpage.action?pageId=1114280) 把 layout.html 改成 layout.tpl 后会报错。

5. What did you expect to see?

如果是bug 希望做个修复 否则,希望官网能针对该限制增加一个说明

6. What did you see instead?

sanrentai avatar Jun 20 '22 06:06 sanrentai

我这里没报错, 他意思是, 比如你 有个文件叫news_content.tpl 你 define 得是 ${define "news_content"}

codgo avatar Jun 22 '22 05:06 codgo

layout.html 这个文件改成 layout.tpl,但header.html 不做任何改变,那么就会报错。

sanrentai avatar Aug 13 '22 09:08 sanrentai

@sanrentai 模板文件 和 define template 的文件后缀必须保持一致的

gqcn avatar Aug 17 '22 11:08 gqcn