example/app.rb
def styleguide_block(section, &block)
    @section = @styleguide.section(section)
    @example_html = capture{ block.call }
    @_out_buf << erb(:_styleguide_block)
  end
# Generates a styleguide block. A little bit evil with @_out_buf, but
# if you're using something like Rails, you can write a much cleaner helper
# very easily.
Generates a styleguide block. A little bit evil with @_out_buf, but
if you're using something like Rails, you can write a much cleaner helper
very easily.
Generates a styleguide block . A little bit evil with @_out_buf but if you ' re using something like Rails you can write a much cleaner helper very easily .
def styleguide_block(section, &block)
    @section = @styleguide.section(section)
    @example_html = capture{ block.call }
    @_out_buf << erb(:_styleguide_block)
  end
def styleguide_block ( section , & block ) @section = @styleguide . section ( section ) @example_html = capture { block . call } @_out_buf << erb ( :_styleguide_block ) end
Generates a styleguide block.
Generates a styleguide block .
section
block