iron / router

Router middleware for the Iron web framework.
165 stars 74 forks source link

Ability to construct URLs from routes #109

Closed untitaker closed 8 years ago

untitaker commented 8 years ago

Flask provides this: http://flask.pocoo.org/docs/0.10/quickstart/#url-building This requires giving each route a unique identifier.

I don't want to hardcode my routes into the application. Is there another established pattern that I am missing?

gsquire commented 8 years ago

This would be cool to have but Rust doesn't have keyword args like Python does. Do you have any thoughts on how this could be done?

untitaker commented 8 years ago

Just pass a hashmap, if you want syntax niceties you can always use a macro I guess.

On Wed, Apr 06, 2016 at 09:59:05PM -0700, Garrett Squire wrote:

This would be cool to have but Rust doesn't have keyword args like Python does. Do you have any thoughts on how this could be done?


You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/iron/router/issues/109#issuecomment-206696573