2015-10-15 39 views
-2

我得到這樣的錯誤: enter image description hereHaml錯誤:語法錯誤,意外的keyword_ensure,期待輸入結束...:Util.html_safe(_erbout); ensure; @haml_buffer = @haml_buffer .... ...

其實我也使用2空格haml語法。使用haml標籤它可以工作,而不是使用ruby代碼。如何解決它的傢伙?

這裏是代碼:

%li 
     = image_tag('leaf.jpg') 
     .caption 
      .slide-text-info.bounceInDown{"data-wow-delay" => "0.4s"} 
      %h1 welcome to our marketplace 
      %p Lorem ipsum dolor sit amet, consectetur adipisicing elit.Sed nisi metus,tristique ndolor non,ornare sagittis dolor.Nulla vestibulu lacus... 
      .slide-btns 
       %a.startnow{:href => "#"} VIWE MORE 
       %a.livedemo{:href => "#"} VIDEO TOUR 
+0

的截圖是很難看。請分享代碼。 – Pavan

+0

嘗試用'='替換'-' – Minato

+0

是的,我知道,在代碼中我做到了這一點,但仍然是同樣的問題 –

回答

2

儘量把內容塊內部:

%li 
    = image_tag('leaf.jpg') do 
    .caption 
     .slide-text-info.bounceInDown{"data-wow-delay" => "0.4s"} 
     %h1 welcome to our marketplace 
     %p Lorem ipsum dolor sit amet, consectetur adipisicing elit.Sed nisi metus,tristique ndolor non,ornare sagittis dolor.Nulla vestibulu lacus... 
     .slide-btns 

      %a.startnow{:href => "#"} VIWE MORE 
      %a.livedemo{:href => "#"} VIDEO TOUR 

(注意doimage_tag

相關問題