macaron 根目录默认为templates文件夹,所以如果启动目录同目录下有templates目录,要给它指定另一个文件夹

m *macaron.Macaron

//随便指向一个目录,因为web没用到模板,不能使用默认值templates,因为这个目录被其他模板占用了
m.Use(macaron.Renderer(macaron.RenderOptions{Directory: "template"}))
原文地址:https://www.cnblogs.com/zipon/p/12377536.html