草庐IT

TemplatesDir

全部标签

go - 无法使用 Gin 加载 HTML 模板

我在通过r.HTMLRender设置使用Gin框架加载html模板时遇到了一些问题。似乎找不到模板。我曾尝试使用以下助手:GinHTMLRender:https://gist.github.com/madhums/4340cbeb36871e227905EZGin模板:https://github.com/michelloworld/ez-gin-template在设置模板的默认路径时,这些似乎都不起作用(在我的例子中是app/views);为了达到这个目的,我的html模板文件结构如下所示:/workspace|-app|-views|-layouts|-application.ht