Sha256: 1689b7e689555f041b2174129c4bd6169ebc4098b7ffe654ac6060b3bdbb2b81
Contents?: true
Size: 535 Bytes
Versions: 3
Compression:
Stored size: 535 Bytes
Contents
require 'phrender' require 'embork/server' class Embork::Phrender < Embork::Server 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 end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
embork-0.0.13 | lib/embork/phrender.rb |
embork-0.0.12 | lib/embork/phrender.rb |
embork-0.0.11 | lib/embork/phrender.rb |