Render a view without writing a handler
When a route has no handler, Total.js renders a view for it: views/about.html for /about/ and views/index.html for /. You can also name the view yourself by passing a string instead of a function.
<!DOCTYPE html><html><body>@{body}</body></html><h1>Home</h1><h1>About us</h1><h1>Contact</h1>exports.install = function() {
ROUTE('GET /');
ROUTE('GET /about/');
ROUTE('GET /contact/', 'contact-page');
};