Class: Alephant::Renderer::Views::Html

Inherits:
Object
  • Object
show all
Includes:
Base
Defined in:
lib/alephant/renderer/views/html.rb

Class Attribute Summary collapse

Instance Method Summary collapse

Methods included from Base

included

Class Attribute Details

.template_pathObject

FIXME: remove this when we’ve gotten rid of all of the ‘self.template_path` directives



13
14
15
# File 'lib/alephant/renderer/views/html.rb', line 13

def template_path
  @template_path
end

Instance Method Details

#renderObject



22
23
24
# File 'lib/alephant/renderer/views/html.rb', line 22

def render
  @renderer.render self
end

#setupObject



16
17
18
19
20
# File 'lib/alephant/renderer/views/html.rb', line 16

def setup
  @content_type = 'text/html'
  @translator = translator
  @renderer = renderer_engine
end