a-simple-templater
Make your routes. Uses mustache templates by default.
Your index.js
var templater = ;var fs = var routes = url: '/' template: '<h1>{{title}}</h1>' { } url: '/hello/:id' template: fs { } { console }
Your index.html
A trick for gh-pages:
Rename index.html to 404.html and then symlink index to 404.
ln -s 404.html index.html
Overriding the default rendering engine (mustache) to use handlebars, for example:
var Handlebars =
TODO
- handle 404s correctly. make the 404.html trick for gh-pages not be necessary