UNPKG

anatomy

Version:

An opinionated yet open-ended framework for Node.js projects based on the human body.

19 lines (16 loc) 348 B
;(function() { 'use strict'; var Router = require('ampersand-router'); module.exports = Router.extend({ initialize: function(options) { this.context = options.context; }, routes: { '': 'welcome', 'welcome': 'welcome' }, welcome: function() { this.context.welcome.view.render(); } }); })();