2017-05-23 4 views
0

htmll 코드가 html 파일의 body 태그에 포함되어 있습니까?html 파일에서 haml을 사용할 수 있습니까?

.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> 

변환입니다

관련 문제