Module: ActionView::Helpers::TagHelper
- Defined in:
- lib/gems/haml-2.0.4/lib/haml/helpers/action_view_mods.rb
Instance Method Summary collapse
- #content_tag_with_haml(name, *args, &block) ⇒ Object (also: #content_tag)
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 content_tag_with_haml(name, *args, &block) content = content_tag_without_haml(name, *args, &block) if is_haml? && haml_buffer.[:preserve].include?(name.to_s) content = Haml::Helpers.preserve content end content end |