2011-03-23 151 views
0

我應該如何使用HAML生成這樣的HTML?HAML標記生成問題

Hello <span class="someclass">John</span>, you are welcome! 
+0

這可能是值得檢討[這個博客帖子(http://chriseppstein.github.com/blog/2010/02/08/haml-sucks -for-content /)並重新考慮如何做這種標記... – ig0774 2011-03-23 11:49:37

回答

1
Hello 
= succeed "," do 
    %span.someclass John 
you are welcome! 

您可以使用http://html2haml.heroku.com轉換

+0

謝謝,那正是我需要的! – Bob 2011-03-23 11:53:40