News for hackers. Stuff that matters.
Re:Things that Ruby on Rails people tell you by vidarh on Tuesday November 13, 2012 @07:51AM (#4777687)
If you don't like that, you can use haml for example, or any number of other engines. It didn't even occur to me that anyone would care enough about the <% for that to be the point.

If it matters, it'd take about an hour to put together a wrapper to let you use the @foreach ... { } syntax with Rails. Nobody bothers because this is about item #1045 on the list of pain points in web development.

FWIW: For my part I consider it a massive smell to have what appears to be code in the templates, which is why I prefer Mustache and similar which explicitly force the logic to be kept separate, so to me the Razor example and ERB examples look equally hideous.

There are no comments on this comment yet.