2013-04-30 23 views
9

Ben html2haml.heroku.com kullanılan ve aşağıdaki bazı sıradan dizeleri çevirdi:Haml'de neden 'başarılı olmak' kullanıyorsunuz?

A normal sentence is here 
= succeed '.' do 
    %strong and it is cut off randomly by this succeed 

succeed çağrı gereksiz görünüyor nerede. Bu sadece html'den haml dönüşümüne bir eser mi? Eğer

A normal sentence is here 
= succeed '.' do 
    %strong and it is cut off randomly by this succeed 

denemek ve HTML oluşturmak durumunda

cevap

12

, çıktı böyle olacak:

A normal sentence is here 
<strong>and it is cut off randomly by this succeed</strong>. 

Ancak,

A normal sentence is here 
%strong and it is cut off randomly by this succeed 
. 

Olacak gibi bir şey denerseniz böyle bir çıktı:

A normal sentence is here 
<strong>and it is cut off randomly by this succeed</strong> 
. 

Ve beyaz boşluk satır içi öğeler önemlidir - this question

+0

İyi noktada benim (geç) cevaba bakınız! Bir kelimenin bir parçasını biçimlendirmek istediyseniz, örneğin, 'parça öğün' öğesini çağırmak istediğinizde, 'başarılı' ifadesinin 'parça' ile 'yemek' arasında boşluk bırakacağını fark ettim. –

İlgili konular