Sunday, December 5, 2010

All your nodules...

As a side project, I'm presently working on an MVC framework for node.js, and I'm calling it (tentatively) nodule.  The following ideas are being used:

Controllers: simple exports object { target: method }.
View: Resig's simple templating engine, plus HTML helpers
Model: Based on concepts from my old PHPTableModel (which may or may not work at the moment), essentially it's a way to chain tuples, jQuery-like, before committing to a query.

Dispatcher: first, check the router table, then, for http://server/a/b/[...], execute controllerA.B([...].split('/'))

All model and view decisions are made by the controller.

Anyway, it's not that far along yet, but I'll keep everyone posted.

No comments: