Sha256: 9b1a018e48d65319e7b8d8e9debf555aaa88d0820acb9c70c7a0057c60184a29
Contents?: true
Size: 348 Bytes
Versions: 1
Compression:
Stored size: 348 Bytes
Contents
require 'sinatra' get '/' do '<a href="/hello/foo">foo</foo>, <a href="/hello/bar">bar</foo>, <a href="/hello/baz">baz</foo>' end get '/hello/:name' do "Hello #{params[:name]}" end Parklife.application.configure do |config| config.app = Sinatra::Application end Parklife.application.routes do root crawl: true get '/hello/other' end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
parklife-0.4.0 | examples/sinatra/Parkfile |