In the Haml tutorial has this sample:
ERB
Welcome to our site!
<%= print_information %>
Haml
#content
.left.column
%h2 Welcome to our site!
%p= print_information
.right.column
= render :partial => “sidebar”
I want to convert a similar block that includes a conditional, but can’t
find/google how to do it. Is it possible?
ERB
<% if ENV[“RACK_ENV”] == “production” %>
<%= render :partial => “ga” %>
<% else
Haml
???
Any help would be much appreciated.