iamdanfox / ghupdate

Update GitHub pages with wysiwyg and no git commands
https://iamdanfox.github.io/ghupdate
5 stars 1 forks source link

ROUTING #14

Closed iamdanfox closed 9 years ago

iamdanfox commented 9 years ago

It would be nice to use a super lightweight router (maybe like the one from ampersand?).

Essentially the routes /:user/:repo/:path should always match the values of the UserStore, RepoStore and FileStore.

How hard can it be???

iamdanfox commented 9 years ago

I think this pretty much worked!

https://github.com/iamdanfox/ghupdate/blob/gh-pages/src/Router/RefluxRouter.coffee https://github.com/iamdanfox/ghupdate/blob/gh-pages/src/Router/RouteBinding.coffee