Sha256: 389d707cb570f84756378afdfd485832ec0fb6eee4557ebc96fd9b2b8c30be0e

Contents?: true

Size: 485 Bytes

Versions: 4

Compression:

Stored size: 485 Bytes

Contents

# -*- coding: utf-8 -*-

require 'sinatra/base'

gem 'sinatra-static-assets'
require 'sinatra/static_assets'

module Sinatra
  class Mapp1 < Sinatra::Base
    helpers Sinatra::UrlForHelper
    helpers Sinatra::StaticAssets
    
    set :app_file,  __FILE__
    set :static, true  
    
    #set :root, File.dirname(__FILE__)
    #set :views, Proc.new { File.join(root, "views") }
    
    get '/' do
      @title = "Tatra Mountains, Błyszcz (2159 m)"
      erb :app
    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
wbzyl-rack-static-assets-0.0.2 examples/mapp1/mapp.rb
wbzyl-sinatra-static-assets-0.0.10 examples/mapp1/mapp.rb
wbzyl-sinatra-static-assets-0.0.8 examples/mapp1/mapp.rb
wbzyl-sinatra-static-assets-0.0.9 examples/mapp1/mapp.rb