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 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?