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
Comments
Post a Comment