What are some good template engines in go? Please share your experience.

blov · · 435 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>I use smarty for PHP. It&#39;s always good to separate logic layer and design layer. Now, I&#39;m learning web development using go, I&#39;d like to know some good template engines and your experience with them if you have used any of them.</p> <hr/>**评论:**<br/><br/>mattinielsen: <pre><p>Just use <a href="https://golang.org/pkg/html/template/" rel="nofollow">https://golang.org/pkg/html/template/</a> ... It is really good. </p></pre>pdt256: <pre><p>Since you are coming from PHP, there is a golang port for Twig: <a href="https://github.com/tyler-sommer/stick" rel="nofollow">https://github.com/tyler-sommer/stick</a></p> <p>Twig is one of the better PHP template engines: <a href="https://twig.symfony.com" rel="nofollow">https://twig.symfony.com</a></p></pre>pancakesausagestick: <pre><p>I use <a href="https://github.com/valyala/quicktemplate" rel="nofollow">https://github.com/valyala/quicktemplate</a> I really like how it compiles to go code.</p></pre>joncalhoun: <pre><p>I mostly stick with the standard library template package, but if you are coming from rails the template package plush will look very familiar - <a href="https://github.com/gobuffalo/plush" rel="nofollow">https://github.com/gobuffalo/plush</a></p></pre>chezhead: <pre><p>I&#39;ve been using beego which uses it&#39;s own customized/tweaked engine, but first use the default, html/template package. It&#39;s what most frameworks are based around and it&#39;s useful to learn.</p></pre>

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

435 次点击  
加入收藏 微博
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传