The idea comes from merb. How it works:
`with(page: 1) do
everything in here will get {page: 1} into conditions
get("/products").to(app)
get("/tags").to(app)
end`
Instead of:
get("/products").to(app, page: 1) get("/tags").to(app, page: 1)
Also there has to be a way how to put an app and options to Usher::Route#to method. See http://github.com/joshbuddy/usher/issues/#issue/3 for more informations.
The idea comes from merb. How it works:
`with(page: 1) do
everything in here will get {page: 1} into conditions
get("/products").to(app)
get("/tags").to(app)
end`
Instead of:
get("/products").to(app, page: 1) get("/tags").to(app, page: 1)Also there has to be a way how to put an app and options to
Usher::Route#tomethod. See http://github.com/joshbuddy/usher/issues/#issue/3 for more informations.