cidre-ego:Cidre Web框架的自我集成

时间:2021-05-18 22:27:13
【文件属性】:
文件名称:cidre-ego:Cidre Web框架的自我集成
文件大小:5KB
文件格式:ZIP
更新时间:2021-05-18 22:27:13
Go cidre-ego:cidre Web框架的自我集成 cidre-ego提供了一种将模板引擎集成到框架中的简便方法。 安装 go get github.com/yuin/cidre-ego 用法 创建自我模板并运行ego命令。 <%! func ShowItems(w io.Writer, items []string) error %> <%% import "strings" %%> <%% import "github.com/yuin/cidre-ego" %%>
    <% for _, item := range items { %>
  • <%= item %>
  • <% } %>
<% ego.EgoLayout(w, MyLayout) %> <%! func MyLayout(w io.
【文件预览】:
cidre-ego-master
----README.rst(2KB)
----ego_test.go(2KB)
----templates_test.go(2KB)
----LICENSE(1KB)
----ego.go(2KB)
----_test()
--------layout.ego(114B)
--------user.ego(343B)
--------conents.ego(341B)

网友评论