Class: Legendary::Formatters::Html
- Defined in:
- lib/legendary/formatters/html.rb
Instance Method Summary collapse
Methods inherited from Base
#initialize, #sorted_gems, #template_path
Constructor Details
This class inherits a constructor from Legendary::Formatters::Base
Instance Method Details
#format ⇒ Object
2 3 4 5 6 |
# File 'lib/legendary/formatters/html.rb', line 2 def format @extension = "html" engine = Haml::Engine.new(File.read(output_path)) engine.render(self) end |
#output_path ⇒ Object
8 9 10 |
# File 'lib/legendary/formatters/html.rb', line 8 def output_path File.join(template_path, "output.html.haml") end |