ruby on rails - Please help me converting this code to haml -


note :: I try to include file uploads system in my rail project I am doing But I am getting problems with this EJS code. Please convert the code below to HAML code.

  & lt; Script id = "b-file-ejs" type = "text / ejs" & gt; & Lt; Div id = "file- & lt;% = FileAPI.uid (file)% & gt;" Class = "js-file b-file b-file_ & lt;% = file.type.split ('/') [0]%>" & Gt; & Lt; Div class = "js-left b-file__left" & gt; & Lt; Img src = "& lt;% = icon [file.type.split ('/') [0]] icon.def% & gt; width =" 32 "height =" 32 "style =" margin: 2px   



You can also try this tool Sometimes it works better:


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

java - Messages from .properties file do not display UTF-8 characters -

javascript - amcharts makechart not working -