Class: Embork::Phrender
Instance Attribute Summary
Attributes inherited from Server
#app, #backend, #disable_logging, #host, #port, #project_root, #sprockets_environment
Instance Method Summary collapse
Methods inherited from Server
#initialize, #run_webrick, #setup_bundled_mode, #setup_dev_mode, #setup_test_mode
Constructor Details
This class inherits a constructor from Embork::Server
Instance Method Details
#build_app ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/embork/phrender.rb', line 6 def build_app cascade_apps = @cascade_apps phrender = [Phrender::RackMiddleware, { :javascript_files => @borkfile.phrender_javascript_paths, :javascript => @borkfile.phrender_raw_javascript, :index_file => @borkfile.phrender_index_file }] backend = @borkfile.backend cascade_apps.push backend if backend Rack::Builder.new do use *phrender run Rack::Cascade.new(cascade_apps) end end |