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

Version Path
slideshow-models-4.1.0 lib/slideshow/helpers/directive_helper.rb
slideshow-models-4.0.1 lib/slideshow/helpers/directive_helper.rb
slideshow-models-4.0.0 lib/slideshow/helpers/directive_helper.rb
slideshow-models-3.3.1 lib/slideshow/helpers/directive_helper.rb
slideshow-models-3.3.0 lib/slideshow/helpers/directive_helper.rb
slideshow-models-3.2.0 lib/slideshow/helpers/directive_helper.rb
slideshow-models-3.1.1 lib/slideshow/helpers/directive_helper.rb
slideshow-models-3.1.0 lib/slideshow/helpers/directive_helper.rb
slideshow-models-3.0.2 lib/slideshow/helpers/directive_helper.rb
slideshow-models-3.0.1 lib/slideshow/helpers/directive_helper.rb
slideshow-models-3.0.0 lib/slideshow/helpers/directive_helper.rb
slideshow-models-2.5.0 lib/slideshow/helpers/directive_helper.rb
slideshow-models-2.4.0 lib/slideshow/helpers/directive_helper.rb