<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'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'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's file format and It really is mostly same. So, I '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't had to make any significant changes after that except replacing " ' " with ' " '. </p></pre>
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889
- 请尽量让自己的回复能够对别人有帮助
- 支持 Markdown 格式, **粗体**、~~删除线~~、
`单行代码`
- 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
- 图片支持拖拽、截图粘贴等方式上传