Skip to content

with(options, &block) #2

@botanicus

Description

@botanicus

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions