Class: Locomotive::Misc::ApiDocumentation::BootstrapRenderer
- Inherits:
-
Object
- Object
- Locomotive::Misc::ApiDocumentation::BootstrapRenderer
- Defined in:
- lib/locomotive/misc/api_documentation.rb
Overview
Processor
Instance Method Summary collapse
-
#render(resources, embedded_resources) ⇒ Object
Create a single HTML page enhanced by Twitter boostrap components.
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, ) source = File.read(self.path) engine = Haml::Engine.new(source) engine.render(Object.new, resources: resources, embedded_resources: ) end |