module ActionView::Helpers::TagHelper
Constants
- DEFAULT_PRESERVE_OPTIONS
Public Instance Methods
content_tag(name, *args, &block)
Also aliased as: content_tag_without_haml
Alias for: content_tag_with_haml
content_tag_with_haml(name, *args, &block)
click to toggle source
# File lib/haml/helpers/action_view_mods.rb, line 58 def content_tag_with_haml(name, *args, &block) return content_tag_without_haml(name, *args, &block) unless is_haml? preserve = haml_buffer.options.fetch(:preserve, DEFAULT_PRESERVE_OPTIONS).include?(name.to_s) if block_given? && block_is_haml?(block) && preserve return content_tag_without_haml(name, *args) do haml_buffer.fix_textareas!(Haml::Helpers.preserve(&block)).html_safe end end content = content_tag_without_haml(name, *args, &block) if preserve && content content = haml_buffer.fix_textareas!(Haml::Helpers.preserve(content)).html_safe end content end
Also aliased as: content_tag