module Slideshow::StepHelper
Public Instance Methods
step( opts={}, &blk )
click to toggle source
# File lib/slideshow/helpers/step_helper.rb, line 7 def step( opts={}, &blk ) puts " Adding HTML div block for step (incremental display)..." text = capture_erb(&blk) before = "<!-- begin step #{opts.inspect} -->\n" before << "<div class='step' markdown='1'>\n" after = "</div>\n" after << "<!-- end step -->\n" html = "" html << guard_block( before ) html << text html << guard_block( after ) concat_erb( html, blk.binding ) return end