Sha256: d46087059ef5af469c185058ba91a1bbf5c08e4060ce76a89b352752acd4e93d

Contents?: true

Size: 475 Bytes

Versions: 4

Compression:

Stored size: 475 Bytes

Contents

require 'sinatra/base'
require "wlang"
require "wlang/tilt"
module Alf
  module Repl
    class WebApp < Sinatra::Base
      set :public_folder,   Path.backfind('public')
      set :views,           Path.backfind('views')
      set :raise_errors,    true
      set :show_exceptions, false
      set :dump_errors,     true
      set :wlang,           {layout: :html5}

      get '/' do
        wlang :repl
      end

    end # class WebApp
  end # module Repl
end # module Alf

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
alf-repl-0.16.3 lib/alf/repl/webapp.rb
alf-repl-0.16.2 lib/alf/repl/webapp.rb
alf-repl-0.16.1 lib/alf/repl/webapp.rb
alf-repl-0.16.0 lib/alf/repl/webapp.rb