|
|
|
|
|
by irahul
4961 days ago
|
|
> You don't see how uncomfortable for the hands it is to type `<%` and closing `%>` every single time you want to output something using code? How can you compare that, to a simple `@` symbol? ERB (or even Mustache for that matter, feel like a relic compares to Razor. I don't think you are doing an objective evaluation. 1. All goddamn editors can be configured to do a short key for the expression(I have mapped \1 to `<% %>` and \2 to `<%= %>`) 2. If that is too much of work, use Haml http://haml.info/tutorial.html or Slim http://slim-lang.com/ # slim
- persons.each do |person|
p = person
# haml
- persons.each do |person|
%p = person
|
|
Are you kidding me?
Slim looks like something much MUCH better than the crufty old ERB.