# encoding: utf-8 module Slideshow module StepHelper def step( opts={}, &blk ) puts " Adding HTML div block for step (incremental display)..." text = capture_erb(&blk) before = "\n" before << "
\n" after = "
\n" after << "\n" html = "" html << guard_block( before ) html << text html << guard_block( after ) concat_erb( html, blk.binding ) return end end # module StepHelper end # module Slideshow class Slideshow::Gen include Slideshow::StepHelper end