我是Go初学者,想使用revel web框架开发web应用。
我按照教程从以下位置安装和测试 revel: http://revel.github.io/tutorial/index.html
但是当我运行 revel run myapp 命令并转到 http://localhost:9000/
时,
该页面显示一条错误消息:
Server Error: Template Execution Error (in app/index.html:23): "footer.html" is an incomplete or empty template
Additionally, an error occurred when rendering the error page: html/template:errors/500.html: "errors/500.html" is an incomplete or empty template
我试图删除句子:
{{ template "footer.html" .}}
现在它可以工作了,但这并不是问题的真正解决方案。
以前有其他人遇到过这个问题吗?
最佳答案
您需要安装更新的 Go 版本 1.2(不是 1.1.2)。
Here是 Ubuntu 的小教程。
关于html - 为什么 Revel Web 框架教程应用程序不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25271616/