会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
zipon
博客园
首页
新随笔
联系
管理
订阅
2020年2月28日
macaron 根目录默认为templates文件夹,所以如果启动目录同目录下有templates目录,要给它指定另一个文件夹
摘要: m *macaron.Macaron //随便指向一个目录,因为web没用到模板,不能使用默认值templates,因为这个目录被其他模板占用了m.Use(macaron.Renderer(macaron.RenderOptions{Directory: "template"}))
阅读全文
posted @ 2020-02-28 15:50 zipon
阅读(695)
评论(0)
推荐(0)
公告