哪个 RoR 模板引擎类似于 Razor 模板引擎? [英] Which RoR template engine is similar to the Razor template engine?

查看:68
本文介绍了哪个 RoR 模板引擎类似于 Razor 模板引擎?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经非常习惯使用 Razor 在 MVC4 中开发视图.但是我必须在 RoR 中做一个项目,而且我对整个 Rails 环境还很陌生.我喜欢 Razor,因为它让我摆脱了 <% 的业务.

I've got really used to developing views in MVC4 using Razor. But I have to do a project in RoR and I'm pretty new to the whole Rails environment. I like Razor because it frees me from the <% business.

有人可以为 Ruby 推荐一个 Razor 的近亲吗?

Can someone suggest a close cousin of Razor for Ruby?

推荐答案

RoR 中的模板引擎环境比 asp.net 中的要广泛得多.

The templating engine landscape in RoR is much wider than the one in asp.net.

我使用 Slim :http://slim-lang.com/ 也与 haml 非常相似.

I use Slim : http://slim-lang.com/ very similar to haml too.

这篇关于哪个 RoR 模板引擎类似于 Razor 模板引擎?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆