module Haml::Helpers

def capture_haml(*args, &block)


the local variable foo would be assigned to "

13

\n".

%p= a
- foo = capture_haml(13) do |a|
.foo

For example, after the following,
and returns it as a string.
gets rid of the excess indentation,
Captures the result of the given block of Haml code,
def capture_haml(*args, &block)
  capture_haml_with_buffer(haml_buffer.buffer, *args, &block)
end