2
我試圖將此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