Module: ActionView::Helpers::TagHelper

Defined in:
lib/gems/haml-2.0.4/lib/haml/helpers/action_view_mods.rb

Instance Method Summary collapse

Instance Method Details

#content_tag_with_haml(name, *args, &block) ⇒ Object Also known as: content_tag



108
109
110
111
112
113
114
115
116
# File 'lib/gems/haml-2.0.4/lib/haml/helpers/action_view_mods.rb', line 108

def (name, *args, &block)
  content = (name, *args, &block)

  if is_haml? && haml_buffer.options[:preserve].include?(name.to_s)
    content = Haml::Helpers.preserve content
  end

  content
end