I am a little tried with erb because of the <%=%>.
由于<%=%>,我对erb进行了一些尝试。
HAML is a proper option,just wondering if there is any like HAML or something even cooler or better?
HAML是一个合适的选择,只是想知道是否有像HAML或更酷或更好的东西?
It will be really helpful if you also attach the URL of thing you recommend.
如果您还附加了您推荐的内容的URL,那将非常有用。
1 个解决方案
#1
3
Yes, there're a couple:
是的,有一对:
- http://www.hokstad.com/mini-reviews-of-19-ruby-template-engines.html
- https://github.com/stonean/slim
- https://github.com/defunkt/mustache
But personnaly, if I wouldn't want to use erb I would go with HAML (even though it's somewhat python-looking)
但是,如果我不想使用erb,我会选择使用HAML(即使它看起来有些像蟒蛇)
#1
3
Yes, there're a couple:
是的,有一对:
- http://www.hokstad.com/mini-reviews-of-19-ruby-template-engines.html
- https://github.com/stonean/slim
- https://github.com/defunkt/mustache
But personnaly, if I wouldn't want to use erb I would go with HAML (even though it's somewhat python-looking)
但是,如果我不想使用erb,我会选择使用HAML(即使它看起来有些像蟒蛇)