Module: Slideshow::DirectiveHelper

Included in:
Gen
Defined in:
lib/slideshow/helpers/directive_helper.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) css(&block)

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 %>


20
21
22
# File 'lib/slideshow/helpers/directive_helper.rb', line 20

def css( &block )
  content_for( :css, nil, &block )
end

- (Object) slide(params)



24
25
26
# File 'lib/slideshow/helpers/directive_helper.rb', line 24

def slide( params )
  "<!-- _S9SLIDE_ #{params ? params : ''} -->"         
end

- (Object) style(params)



28
29
30
# File 'lib/slideshow/helpers/directive_helper.rb', line 28

def style( params )
  "<!-- _S9STYLE_ #{params ? params : ''} -->"         
end