Class: Locomotive::Misc::ApiDocumentation::BootstrapRenderer

Inherits:
Object
  • Object
show all
Defined in:
lib/locomotive/misc/api_documentation.rb

Overview

Processor

Instance Method Summary collapse

Instance Method Details

#render(resources, embedded_resources) ⇒ Object

Create a single HTML page enhanced by Twitter boostrap components.



100
101
102
103
104
# File 'lib/locomotive/misc/api_documentation.rb', line 100

def render(resources, embedded_resources)
  source = File.read(self.path)
  engine = Haml::Engine.new(source)
  engine.render(Object.new, resources: resources, embedded_resources: embedded_resources)
end