Module | ActionView::Helpers::TagHelper |
In: |
lib/haml/helpers/action_view_mods.rb
|
content_tag | -> | content_tag_without_haml |
# File lib/haml/helpers/action_view_mods.rb, line 97 97: def content_tag_with_haml(name, *args, &block) 98: return content_tag_without_haml(name, *args, &block) unless is_haml? 99: 100: preserve = haml_buffer.options[:preserve].include?(name.to_s) 101: 102: if block_given? && block_is_haml?(block) && preserve 103: return content_tag_without_haml(name, *args) {preserve(&block)} 104: end 105: 106: returning content_tag_without_haml(name, *args, &block) do |content| 107: return Haml::Helpers.preserve(content) if preserve && content 108: end 109: end