Razor-like syntax in ruby ​​rail

Possible duplicate:
Which RoR template engine is similar to the Razor template engine?

asp.net mvc did a great job of marking up Rails.
I know that on rails, if you want to add inline code to a view, it must be inside the syntax <% %> .
it also exists in asp.net mvc, but they added another option for the Razor syntax engine.
Does anyone know if rails has a razor-like equivalent (or any other way to render inline code in a view other than the standard method <% %> )?

EDIT - I also know about Haml , and I think it's not as elegant as I need it, as this is a new way to write html tags. I prefer to adhere to standards and just have a good way to install inline code.
thanks in advance:)

+4
source share

Source: https://habr.com/ru/post/1412292/


All Articles