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) ⇒ Object
Create a single HTML page enhanced by Twitter boostrap components.
Instance Method Details
#render(resources) ⇒ Object
Create a single HTML page enhanced by Twitter boostrap components.
81 82 83 84 |
# File 'lib/locomotive/misc/api_documentation.rb', line 81 def render(resources) source = File.read(self.path) Haml::Engine.new(source).render(Object.new, resources: resources) end |