mozilla/openbadges-discovery — pull request #306 by stenington (2014-05-13 20:07:25+00:00)
Title: [WIP] Add static page example, and 404 page with route handling

@ZeeJab You can build on this for the FAQ/About pages.

Run the app and navigate to `http://localhost:3000/page/yo` and you should see a poorly formatted page that says "Yo." on it. The idea is that `/page/` will render `/clientapp/templates/pages/static/.html` if it finds it, or `404.html` under the same directory if it can't.

So you could make the faq and about pages as templates in that directory and link to them that way. It would also be awesome if you made the 404 page not just say "404." in the same ugly way as the "Yo." example. The only restriction on html templates is that at the top level they **must have a single element**, so wrap everything in a `

` or `

` or whatever.