Module: ActionView::Helpers::CaptureHelper

### Home Classes Methods

### In Files

- lib/haml/helpers/action_view_mods.rb
- lib/haml/helpers/action_view_xss_mods.rb

### Methods

- #capture
- #capture_with_haml
- #capture_without_haml
- #with_output_buffer
- #with_output_buffer_with_haml_xss
- #with_output_buffer_without_haml_xss

### 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::CaptureHelper

### Public Instance Methods

capture(*args, &block) click to toggle source
Also aliased as: capture_without_haml
Alias for: capture_with_haml
capture_with_haml(*args, &block) click to toggle source

    # File lib/haml/helpers/action_view_mods.rb, line 40
    def capture_with_haml(*args, &block)
      if Haml::Helpers.block_is_haml?(block)
        #double assignment is to avoid warnings
        _hamlout = _hamlout = eval('_hamlout', block.binding) # Necessary since capture_haml checks _hamlout

        str = capture_haml(*args, &block)

        # NonCattingString is present in Rails less than 3.1.0. When support
        # for 3.0 is dropped, this can be removed.
        return ActionView::NonConcattingString.new(str) if str && defined?(ActionView::NonConcattingString)
        return str
      else
        capture_without_haml(*args, &block)
      end
    end

Also aliased as: capture
capture_without_haml(*args, &block) click to toggle source
Alias for: capture
with_output_buffer(*args, &block) click to toggle source
Also aliased as: with_output_buffer_without_haml_xss
Alias for: with_output_buffer_with_haml_xss
with_output_buffer_with_haml_xss(*args, &block) click to toggle source

    # File lib/haml/helpers/action_view_xss_mods.rb, line 4
    def with_output_buffer_with_haml_xss(*args, &block)
      res = with_output_buffer_without_haml_xss(*args, &block)
      case res
      when Array; res.map {|s| Haml::Util.html_safe(s)}
      when String; Haml::Util.html_safe(res)
      else; res
      end
    end

Also aliased as: with_output_buffer
with_output_buffer_without_haml_xss(*args, &block) click to toggle source
Alias for: with_output_buffer

[Validate]

Generated with the Darkfish Rdoc Generator 2.