Sha256: 7b0db72b553742e9751eaa2006ad59974acd3678e20fc8fb2beb50191f4257bf

Contents?: true

Size: 387 Bytes

Versions: 9

Compression:

Stored size: 387 Bytes

Contents

module JavascriptLab
   class App < ::Sinatra::Default
      include JavascriptLab::ViewHelpers

      @@root = File.expand_path(File.join(File.dirname(__FILE__), '..', '..'))
      set :root,  @@root
      set :app_file, __FILE__

      get '/stylesheets/:stylesheet.css' do
         sass params[:stylesheet].to_sym
      end

      get '/' do
         erb :index
      end

   end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
neerajdotname-javascript_lab-0.0.1 lib/javascript_lab/app.rb
neerajdotname-javascript_lab-0.0.10 lib/javascript_lab/app.rb
neerajdotname-javascript_lab-0.0.2 lib/javascript_lab/app.rb
neerajdotname-javascript_lab-0.0.3 lib/javascript_lab/app.rb
neerajdotname-javascript_lab-0.0.4 lib/javascript_lab/app.rb
neerajdotname-javascript_lab-0.0.5 lib/javascript_lab/app.rb
neerajdotname-javascript_lab-0.0.7 lib/javascript_lab/app.rb
neerajdotname-javascript_lab-0.0.8 lib/javascript_lab/app.rb
neerajdotname-javascript_lab-0.0.9 lib/javascript_lab/app.rb