Sawyer X

Results 167 comments of Sawyer X

We're pushing hard to finish the plugins work for this release (hopefully going out on Sunday, tomorrow). I can try and prepare a sample to test out today and tomorrow....

@mickeyn suggested adding a set of keywords to be **named**, such as `named_get`, `named_post`, `named_del`, etc. How does that sound to people? ``` # in code named_get display_product => '/view/product/:id'...

Let's bump this back up! :)

I've given this a bit more thought. I think we don't need new DSL keywords. There are only two ways to call `get`: `get '/' => sub {...}` `get '/'...

I wrote the sample code. I'll put up a PR for discussion.

I updated the PR with a new keyword: `uri_for_route`, but it's still not perfect.

Where do you suggest putting this?

You would need to refactor the logic in `send_as` so it isn't repeated.