module ActionView::Helpers::CaptureHelper

Public Instance Methods

capture(*args, &block)
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 41
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

    capture_haml(*args, &block)
  else
    capture_without_haml(*args, &block)
  end
end
Also aliased as: capture
capture_without_haml(*args, &block)
Alias for: capture
with_output_buffer(*args, &block)
with_output_buffer_with_haml_xss(*args, &block) click to toggle source
# File lib/haml/helpers/action_view_xss_mods.rb, line 6
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)
Alias for: with_output_buffer