有没有 Go 语言版本的 haml 或 slim?

huangapple go评论76阅读模式
英文:

Is there any Go port of haml or slim?

问题

我发现自己在使用Go编写Web内容,并发现内置的模板引擎很“有趣”。我在我的Ruby项目中想念haml(或slim)。我进行了快速搜索,但没有找到类似的东西。是否有将haml或slim移植到Go的版本?

英文:

I found myself coding web stuff with Go and find the in-built template engine to be 'interesting'. I miss haml (or slim) from my Ruby projects. A quick search gave me nothing of the sort. Are there any ports of haml or slim to Go?

答案1

得分: 8

我在Google搜索“haml golang”时得到了几个顶部的结果:

英文:

I get several entries at the top of a Google search for haml golang:

答案2

得分: 6

Slim模板引擎<http://slim-lang.com/>是最简单语法的模板引擎,被认为是最好的模板引擎之一。

https://github.com/yosssi/gold 受到Slim和Jade的影响。

https://github.com/eknkc/amber 受到HAML和Jade的启发。

https://github.com/acsellers/bham 类似HAML的Blocky Hypertext Abstraction Markup。

https://github.com/travissimon/ghaml 类似HAML的语言。

https://github.com/a2800276/gaml 简化版的Golang HAML。

https://github.com/bengentil/gojade 由Go实现的Jade模板引擎。

英文:

Slim template engine <http://slim-lang.com/> the best among template engines by reason of the simplest syntax.

https://github.com/yosssi/gold
influenced by Slim and Jade

https://github.com/eknkc/amber
inspired from HAML and Jade

https://github.com/acsellers/bham
haml-like Blocky Hypertext Abstraction Markup

https://github.com/travissimon/ghaml
haml-like language

https://github.com/a2800276/gaml
simplified haml for golang

https://github.com/bengentil/gojade
Jade Template Engine implemented by Go

答案3

得分: 2

请查看 https://github.com/yosssi/ace。Ace 是作者所说的 Gold 的改进版本。

我认为语法与 Slim 非常相似。

英文:

Please, check out https://github.com/yosssi/ace. Ace is a refinement of Gold as the author said.

I think the syntax is pretty similar to Slim.

答案4

得分: 1

这是一个用于Go语言的轻量级模板引擎。

https://github.com/mattn/go-slim

英文:

This is slim template engine for Go

https://github.com/mattn/go-slim

huangapple
  • 本文由 发表于 2013年9月4日 15:22:00
  • 转载请务必保留本文链接:https://go.coder-hub.com/18607751.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定