Module: ActionView::Helpers::TagHelper

### Home Classes Methods

### In Files

- lib/haml/helpers/action_view_mods.rb

### Methods

- #content_tag
- #content_tag_with_haml
- #content_tag_without_haml

### Class/Module Index

Quicksearch

- Haml
- Haml::Buffer
- Haml::Compiler
- Haml::Engine
- Haml::Error
- Haml::ErubisTemplateHandler
- Haml::Exec
- Haml::Exec::Generic
- Haml::Exec::Haml
- Haml::Filters
- Haml::Filters::Base
- Haml::Filters::Cdata
- Haml::Filters::Css
- Haml::Filters::Erb
- Haml::Filters::Escaped
- Haml::Filters::Javascript
- Haml::Filters::Plain
- Haml::Filters::PrecompiledTiltFilter
- Haml::Filters::Preserve
- Haml::Filters::Ruby
- Haml::Filters::SassRailsTemplate
- Haml::Filters::ScssRailsTemplate
- Haml::Filters::TiltFilter
- Haml::Helpers
- Haml::Helpers::ActionViewExtensions
- Haml::Helpers::ErrorReturn
- Haml::Helpers::XssMods
- Haml::Options
- Haml::Parser
- Haml::Parser::Line
- Haml::Parser::ParseNode
- Haml::Plugin
- Haml::Railtie
- Haml::SafeErubisTemplate
- Haml::SyntaxError
- Haml::Template
- Haml::Util
- Haml::Util::StaticConditionalContext
- ActionView
- ActionView::Base
- ActionView::Helpers
- ActionView::Helpers::CaptureHelper
- ActionView::Helpers::FormHelper
- ActionView::Helpers::FormTagHelper
- ActionView::Helpers::HamlSupport
- ActionView::Helpers::InstanceTag
- ActionView::Helpers::TagHelper
- ActionView::Helpers::Tags
- ActionView::Helpers::Tags::TextArea
- ActionView::Helpers::TextHelper
- Object

No matching classes.

# ActionView::Helpers::TagHelper

### Public Instance Methods

content_tag(name, *args, &block) click to toggle source
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
content_tag_without_haml(name, *args, &block) click to toggle source
Alias for: content_tag

[Validate]

Generated with the Darkfish Rdoc Generator 2.