Any Library to use Nunjucks in golang?

blov · · 500 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>Hi, </p> <p>I am looking for a library so I can use nunjucks in go. All my existing templates are in nunjucks, So, It would be awesome if someone can suggest me a library for nunjucks support in go.</p> <p>I&#39;ve already search a lot on godoc, github and google but could not find anything. </p> <hr/>**评论:**<br/><br/>1lann: <pre><p>You could try a Jinja like templating engine for Go, I&#39;m not sure what the differences between Nunjucks are, but it appears to be quite minimal: <a href="https://github.com/flosch/pongo2" rel="nofollow">https://github.com/flosch/pongo2</a></p></pre>ishanjain28: <pre><p>I checked Jinja&#39;s file format and It really is mostly same. So, I &#39;ll try this(<a href="https://github.com/shawnbot/meta-template" rel="nofollow">https://github.com/shawnbot/meta-template</a>) and see if it converts files correctly or rewrite all the templates. </p> <p>Thanks. </p></pre>Improvotter: <pre><p>Well Nunjucks basicaly is Jinja for Javascript. </p></pre>ishanjain28: <pre><p>Yeah, I used the tool i linked to above and I didn&#39;t had to make any significant changes after that except replacing &#34; &#39; &#34; with &#39; &#34; &#39;. </p></pre>

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

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