flatiron / director

a tiny and isomorphic URL router for JavaScript
http://github.com/flatiron/director
MIT License
5.6k stars 486 forks source link

parameters extracted from url are always strings #341

Open Vaevictus opened 8 years ago

Vaevictus commented 8 years ago

Is there any way of defining that a parameter in the url is of a specific type?

currently /documents/:id/pages/:pageNumber/ will parse out id and pagenumber as a string, not a number. This is causing me problems later on when i use these variables in my components. I'd rather fix the problem at the source rather than putting fixes in upstream

Cheers