module Haml::Flatrack::ViewAdditions::CaptureHelper

Public Instance Methods

capture_with_haml(*args, &block) click to toggle source
# File lib/haml/flatrack/view_additions/capture_helper.rb, line 9
def capture_with_haml(*args, &block)
  if 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