Module: Interpol::DocumentationApp
Defined Under Namespace
Modules: Helpers
Classes: AssetInliner, Builder
Instance Method Summary
collapse
Instance Method Details
#build(&block) ⇒ Object
10
11
12
13
|
# File 'lib/interpol/documentation_app.rb', line 10
def build(&block)
config = Configuration.default.customized_duplicate(&block)
Builder.new(config).app
end
|
#render_static_page(&block) ⇒ Object
15
16
17
18
19
20
|
# File 'lib/interpol/documentation_app.rb', line 15
def render_static_page(&block)
require 'rack/mock'
app = build(&block)
status, , body = app.call(Rack::MockRequest.env_for "/", :method => "GET")
AssetInliner.new(body.join, app.public_folder).standalone_page
end
|