Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any Go port of haml or slim?

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?

like image 580
froderik Avatar asked Dec 02 '22 21:12

froderik


2 Answers

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

  • https://github.com/realistschuckle/gohaml
  • https://github.com/dddaisuke/go-haml
  • https://groups.google.com/d/msg/golang-nuts/LmicV9aQJOw/aTY_SNkcQssJ
like image 132
Gustavo Niemeyer Avatar answered Dec 28 '22 08:12

Gustavo Niemeyer


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

like image 45
mikowiec Avatar answered Dec 28 '22 08:12

mikowiec