doushao8421 2014-08-12 18:32
浏览 48
已采纳

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

I'm a beginner in Go and I want to use the revel web framework to develop web applications.

I followed the tutorial to install and test revel from: http://revel.github.io/tutorial/index.html

But when I run the revel run myapp command and go to http://localhost:9000/, the page shows an error that says:

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

I tried to remove the sentence:

{{ template "footer.html" .}}

Now it works, but this is not a real solution to the problem.

Has somebody else had this problem before ?

  • 写回答

1条回答 默认 最新

  • dongyuan6949 2014-08-31 17:21
    关注

    You need to install a newer Go version 1.2 (not 1.1.2).
    Here is a small tutorial for Ubuntu.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 DIFY API Endpoint 问题。
  • ¥20 sub地址DHCP问题
  • ¥15 delta降尺度计算的一些细节,有偿
  • ¥15 Arduino红外遥控代码有问题
  • ¥15 数值计算离散正交多项式
  • ¥30 数值计算均差系数编程
  • ¥15 redis-full-check比较 两个集群的数据出错
  • ¥15 Matlab编程问题
  • ¥15 训练的多模态特征融合模型准确度很低怎么办
  • ¥15 kylin启动报错log4j类冲突