Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Lightweight MVC framework for JavaScript [closed]

I had a look at Backbone.js and while it's a great product, I don't like the binding to jQuery/Zepto for Controller navigation.

I know that I can use things like Models/Collections in Backbone without jQuery, though I do want to use the routing in Controller and not reinvent the wheel myself.

So my question is whether there are any lightweight MVC frameworks which are preferably JS-framework agnostic, or, in worst case, support Prototype/MooTools?

like image 816
Art Avatar asked Dec 02 '10 13:12

Art


1 Answers

Backbone's jQuery integration is just a light dependency -- it's not required. If you don't want to use Views or Controllers (i.e. -- no DOM Manipulation or Ajax persistence), and just stick to Models and Collections, you can use Backbone perfectly well without including jQuery at all.

Jerome Gravel-Niquet also has done the legwork to build a version of Backbone that's backed by Mootools instead of jQuery:

https://github.com/jeromegn/backbone-mootools

like image 57
jashkenas Avatar answered Oct 04 '22 15:10

jashkenas