Module: StyleguideHelper
- Defined in:
- app/helpers/styleguide_helper.rb
Instance Method Summary collapse
-
#styleguide_block(section, styleguide = @styleguide, &block) ⇒ Object
Render a styleguide block.
Instance Method Details
#styleguide_block(section, styleguide = @styleguide, &block) ⇒ Object
Render a styleguide block
4 5 6 7 8 |
# File 'app/helpers/styleguide_helper.rb', line 4 def styleguide_block section, styleguide = @styleguide, &block section = styleguide.section section render :partial => 'styleguide/block', :locals => { :section => section, :example_html => capture(&block) } end |