gpt4 book ai didi

html - 为什么 Revel Web 框架教程应用程序不起作用

转载 作者:IT王子 更新时间:2023-10-29 02:17:02 25 4
gpt4 key购买 nike

我是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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com