Sha256: 70b87662e4bd8b38a08b25925672bd2943068c0292c0d78bfb64641e80e44b0b
Contents?: true
Size: 773 Bytes
Versions: 13
Compression:
Stored size: 773 Bytes
Contents
# encoding: utf-8 module Slideshow module DirectiveHelper # css directive: # # lets you use: # %css # -- inline css code here # %end # # shortcut for: # %content_for :css # -- inline css code here # %end # or # <% content_for :css do %> # -- inline css code here # <% end %> def css( &block ) content_for( :css, nil, &block ) end def slide( params ) # note: to avoid runons with blocks (wrap in double newlines) "\n\n<!-- _S9SLIDE_ #{params ? params : ''} -->\n\n" end def style( params ) # note: to avoid runons with blocks (wrap in double newlines) "\n\n<!-- _S9STYLE_ #{params ? params : ''} -->\n\n" end end # module DirectiveHelper end # module Slideshow class Slideshow::Gen include Slideshow::DirectiveHelper end
Version data entries
13 entries across 13 versions & 1 rubygems