JS 的 MVC 框架 Derby.js
- 授权协议: MIT
- 开发语言: JavaScript
- 操作系统: 跨平台
- 软件首页: http://derbyjs.com/
- 软件文档: http://derbyjs.com/docs
软件介绍
DerbyJS 是一个 MVC 框架,帮助编写实时,交互的应用。可以运行在 Node.js 或者浏览器环境中。
示例代码:
hello.js
var app = module.exports = require('derby').createApp('hello', __filename); app.loadViews(__dirname); // the route is being rendered both on server and client side app.get('/', function(page, model) { // subscription enables data synchronization model.subscribe('hello.message', function() { page.render(); }); });