Class: Revealize::DeckTemplate

Inherits:
Struct
  • Object
show all
Defined in:
lib/revealize/deck_template.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#layout_fileObject

Returns the value of attribute layout_file

Returns:

  • (Object)

    the current value of layout_file



3
4
5
# File 'lib/revealize/deck_template.rb', line 3

def layout_file
  @layout_file
end

Instance Method Details

#render(deck) ⇒ Object



4
5
6
# File 'lib/revealize/deck_template.rb', line 4

def render(deck)
  Haml::Engine.new(layout_file).render(deck)
end