%h1 Partial layout used with for block:
- render :layout => 'layout_for_partial.haml' do
  %p Some content within a layout
%h1 Partial layout used with for block:
- if 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

Use = with render :partial :layout in Rails 3.
[Haml] Use = with render :partial :layout in Rails 3.
