|
|
|
|
|
by vidarh
4963 days ago
|
|
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. |
|