lib/eggplant/server.rb in eggplant-0.2.0 vs lib/eggplant/server.rb in eggplant-0.2.1

- old
+ new

@@ -88,10 +88,15 @@ get '/download.:format' do |format| end def index - slim :show + index_cache = File.join(settings.presentation_root, 'index.html') + if production? && File.exists(index_cache) + send_file index_cache + else + slim :show + end end def self.configure path, ui=['goto'] set :environment, :production set :presentation_root, path