Sha256: 56d3c63e373e76008424129868540c2eab470a719def0f33d0f7157940288879

Contents?: true

Size: 323 Bytes

Versions: 4

Compression:

Stored size: 323 Bytes

Contents

# encoding: utf-8

# Rack::URLMap is very easy router included directly in rack distribution
# You can't use stuff like "posts/:id" there, so env["rango.router.params"]
# allways will be just empty hash

Rango::Router.implement(:urlmap) do |env|
  env["rango.router.params"] = Hash.new
  env["rango.router.app"] = self
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rango-0.1.0 lib/rango/router/adapters/urlmap.rb
rango-0.0.6 lib/rango/router/adapters/urlmap.rb
rango-0.1.pre lib/rango/router/adapters/urlmap.rb
rango-0.0.4 lib/rango/router/adapters/urlmap.rb