giginet / Crossroad

:oncoming_bus: Route URL schemes easily

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Reverse arguments to URL?

i-tengfei opened this issue · comments

Does it support generating URLs from patterns and arguments?
like:

toPath("/user/:id", [ id: "123" ]); //=> "/user/123"

https://github.com/pillarjs/path-to-regexp#compile-reverse-path-to-regexp