module Pith::Server

Public Instance Methods

new(project, options = {}) click to toggle source
# File lib/pith/server.rb, line 9
def new(project, options = {})
  Rack::Builder.new do
    use Rack::ShowExceptions
    use Rack::Lint
    use Rack::Livejs if options[:auto_reload]
    use Pith::Server::OutputFinder, project
    run Rack::Directory.new(project.output_dir)
  end
end