Created
May 20, 2010 07:17
-
-
Save lindsayevans/407297 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#lazyweb is there a haml option to not stick elements on a new line if they're the only child? e.g. | |
(using haml -f html5 -q infile.haml > outfile.html) | |
make: | |
%ul | |
%li | |
%a{:href => "#"} Commercial | |
%li | |
%a{:href => "#"} Residential | |
%li | |
%a{:href => "#"} Retail | |
produce: | |
<ul> | |
<li><a href="#">Commercial</a></li> | |
<li><a href="#">Residential</a></li> | |
<li><a href="#">Retail</a></li> | |
</ul> | |
instead of: | |
<ul> | |
<li> | |
<a href="#">Commercial</a> | |
</li> | |
<li> | |
<a href="#">Residential</a> | |
</li> | |
<li> | |
<a href="#">Retail</a> | |
</li> | |
</ul> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment