ActionView::Helpers::TagHelper

Public Instance Methods

content_tag(name, *args, &block) click to toggle source
Also aliased as: content_tag_without_haml
content_tag_with_haml(name, *args, &block) click to toggle source
     # File lib/haml/helpers/action_view_mods.rb, line 114
114:       def content_tag_with_haml(name, *args, &block)
115:         return content_tag_without_haml(name, *args, &block) unless is_haml?
116: 
117:         preserve = haml_buffer.options[:preserve].include?(name.to_s)
118: 
119:         if block_given? && block_is_haml?(block) && preserve
120:           return content_tag_without_haml(name, *args) {preserve(&block)}
121:         end
122: 
123:         content = content_tag_without_haml(name, *args, &block)
124:         content = Haml::Helpers.preserve(content) if preserve && content
125:         content
126:       end
Also aliased as: content_tag
content_tag_without_haml(name, *args, &block) click to toggle source
Alias for: content_tag

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.