Class: PivotalDoc::Generators::HTML

Inherits:
Base
  • Object
show all
Defined in:
lib/pivotal_doc/generators/html.rb

Instance Method Summary collapse

Methods inherited from Base

#absolute_path, #initialize, #output_file, #output_path, #template

Constructor Details

This class inherits a constructor from PivotalDoc::Generators::Base

Instance Method Details

#output_extObject



7
# File 'lib/pivotal_doc/generators/html.rb', line 7

def output_ext; '.html' end

#render_docObject



8
9
10
11
# File 'lib/pivotal_doc/generators/html.rb', line 8

def render_doc
  html= Haml::Engine.new(template).render(Object.new, {:release=>@release})
  super(html)
end

#template_nameObject



4
5
6
# File 'lib/pivotal_doc/generators/html.rb', line 4

def template_name
  @options['template_name'] || 'html_gen.haml' 
end