Я попытался перевести этот html на haml. Я использовал http://html2haml.herokuapp.com/ и http://htmltohaml.com/ без успеха.Перевести этот html на haml
<li class="nav-item btn-group" data-behavior="notifications" data-notifications='<%= render template: "notifications/index", formats: [:json] %>'>
</li>
Они дают мне как это:
%li.nav-item.btn-group{"data-behavior" => "notifications", "data-notifications" => render template: "notifications/index", formats: [:json]}
Но у меня есть SyntaxError работает это. Может кто-нибудь мне помочь?
https://github.com/haml/html2haml –
@AndreyDeineko спасибо, но я просто нужно перевести эту строку не весь проект. – jmcastel