From: Noel Kelly Date: 2009-08-18T09:58:17+09:00 Subject: conditional logic in HAML In the Haml tutorial has this sample: ERB

Welcome to our site!

<%= print_information %>

<%= render :partial => "sidebar" %>
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
Google Analytics in prod
<% end %> Haml ??? Any help would be much appreciated. -- Posted via http://www.ruby-forum.com/.