Sha256: 5c98c973a5042a3b6863863aafc5fcbcc960c57b33d2e39d0f1c60295299d289
Contents?: true
Size: 612 Bytes
Versions: 11
Compression:
Stored size: 612 Bytes
Contents
# 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 = "<!-- 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 end # module StepHelper end # module Slideshow class Slideshow::Gen include Slideshow::StepHelper end
Version data entries
11 entries across 11 versions & 1 rubygems