Skip to content

Instantly share code, notes, and snippets.

@lindsayevans
Created May 20, 2010 07:17
Show Gist options
  • Save lindsayevans/407297 to your computer and use it in GitHub Desktop.
Save lindsayevans/407297 to your computer and use it in GitHub Desktop.
#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