module Slideshow::DirectiveHelper

Public Instance Methods

css( &block ) click to toggle source

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 %>
# File lib/slideshow/helpers/directive_helper.rb, line 22
def css( &block )
  content_for( :css, nil, &block )
end
slide( params ) click to toggle source
# File lib/slideshow/helpers/directive_helper.rb, line 26
def slide( params )
  # note: to avoid runons with blocks (wrap in double newlines)
  
  "\n\n<!-- _S9SLIDE_ #{params ? params : ''} -->\n\n"
end
style( params ) click to toggle source
# File lib/slideshow/helpers/directive_helper.rb, line 32
def style( params )
  # note: to avoid runons with blocks (wrap in double newlines)

  "\n\n<!-- _S9STYLE_ #{params ? params : ''} -->\n\n"
end