Created
December 22, 2009 02:10
-
-
Save jimsynz/261439 to your computer and use it in GitHub Desktop.
This file contains 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
<% | |
# Oh no! | |
# I have to do this: | |
%> | |
<h1><% if @title.nil? %>Attack of the parisian bouncy castles! No title!<% else %><%=h @title %><% end %></h1> | |
<% | |
# instead of this: | |
%> | |
<h1> | |
<% if @title.nil? %> | |
Attack of the parisian bouncy castles! No title! | |
<% else %> | |
<%=h @title %> | |
<% end %> | |
</h1> | |
<% | |
# In short: carriage returns, the only compelling argument for haml | |
%> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment