A demo app for page - the client-side router.
JavaScript
Latest commit 4aceb2e Apr 17, 2014 @airportyh Linked to Browserify.
Permalink
Failed to load latest commit information.
.gitignore First commit. Apr 17, 2014
README.md Linked to Browserify. Apr 17, 2014
index.html First commit. Apr 17, 2014
index.js First commit. Apr 17, 2014
load_user.js First commit. Apr 17, 2014
load_users.js First commit. Apr 17, 2014
package.json First commit. Apr 17, 2014
show_user.js First commit. Apr 17, 2014
show_users.js First commit. Apr 17, 2014
user_view.js First commit. Apr 17, 2014
users_view.js First commit. Apr 17, 2014

README.md

Page Demo

A demo application to show off Page - the client-side routing library.

To Run

I developed this app using Browserify and bff. Install bff via npm install bff -g, then run

bff server

And you should see the app at http://localhost:3000.

Known Issue

bff's server only serves local html files, so it isn't able to handle any URL other than /. This means that although URLs like /user/1 work in the app, everything will fail horribly if you try to refresh the page or share the link.To solve this you would need a server-side component to serve index.html on each of the valid URLs.