jQuery.component
v1.0.10
Published
A new javascript MVC framework
Downloads
7
Readme
jQuery.component
Make the directory structure
packages/
| pkg1/
| |comp1/
| | | main.html
| | | main.js
| | | model1.php
| | | ...
We can use
$.package({pkg:"pkg1",comp:"comp1"});
and element
<div id="pkg1" comp="comp1"></div>
initialize component
and asynchronous get page
view main.html
controller main.js
the view is pure html
and controller is js file
controller is designed to closure by
(function(comp){
...
})($.package.CurrentComp);
we can use
$(comp).model({})
in the controller (main.js)
asynchronous call dynamic server page likes php,jsp,aspx etc.
Model was only process CRUD(create, read, update, delete) action
--
http://jqcomp.org/
Team
Wei-TaWang
Ronnie Chang
David Weng