%h1 Partial layout used with for block: - if Haml::Util.ap_geq?("3.2.0.alpha1") = render :layout => 'layout_for_partial' do %p Some content within a layout - elsif Haml::Util.ap_geq_3? = render :layout => 'layout_for_partial.haml' do %p Some content within a layout - else - render :layout => 'layout_for_partial.haml' do %p Some content within a layout