2017-05-23 1 views
0

htmllコードはhtmlファイルのbodyタグに入りますか?hamlをhtmlファイルで使用できますか?

.flex 
.intro.animate#microsoft-container 
    .logo 
     - (1..4).each do 
      .box 
    .brand 
     Microsoft 

%iframe.player{:width => 0, :height => 0, :src => 
"https://www.youtube.com/embed/I3Ak5VgyEoc?autoplay=1" } 

答えて

1

いいえ。 HAMLはHTMLの抽象です。したがって、HTML文書の中に住む前に、HTMLに変換する必要があります。 >http://haml.info/tutorial.html

-

はここにあなたのHAMLあなたはHAMLで多くのことを作業している場合、あなたは、参照ローカルに変換HAMLを取得したいと思うhttps://codepen.io/sitrobotsit/pen/MmZBWx

<div class='flex'></div> 
<div class='intro animate' id='microsoft-container'> 
    <div class='logo'> 
    <div class='box'></div> 
    <div class='box'></div> 
    <div class='box'></div> 
    <div class='box'></div> 
    </div> 
    <div class='brand'> 
    Microsoft 
    </div> 
</div> 
<iframe class='player' height='0' src='https://www.youtube.com/embed/I3Ak5VgyEoc?autoplay=1' width='0'></iframe> 

を変換します

関連する問題