module ActionView::Helpers::TagHelper
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 60 def content_tag_with_haml(name, *args, &block) return content_tag_without_haml(name, *args, &block) unless is_haml? preserve = haml_buffer.options[:preserve].include?(name.to_s) if block_given? && block_is_haml?(block) && preserve return content_tag_without_haml(name, *args) {preserve(&block)} end content = content_tag_without_haml(name, *args, &block) content = Haml::Helpers.preserve(content) if preserve && content content end
Also aliased as: content_tag