v.0.0.1
Minimalist Javascript MVC Framework
- loosely coupled system
- each components (model, view, controller) is a mediator
- a component can register, unregister, and call subscriber methods
- no dependencies on any other libraries
- ultra light library
using Bower:
$ bower install micro-mvcload library:
<script type="text/javascript" src="microMVC/dist/js/micromvc.min.js"></script> Create application:
var app = new microMVC.Application();Add a controller:
app.controllers.add("appctrl", {
});Add a model:
app.models.add("appmodel", {
});Add a view:
app.views.add("appview", {
});app.{component}.add("{element id}", {element object}, {extended class});app.{component}.subscribe({context}, {scope}, {callback});app.{component}.publish({context}, {event});app.{component}.call({path}, {argument});Copyright © 2015 Marc Galoyer (http://marc.galoyer.com)
Licensed under the MIT (http://raphaeljs.com/license.html) license.