Looking for a javascript framework that provides template bindings and data bindings that are not MVC

I looked at AngularJS and Backbone.JS both look like great frameworks, however my existing code base does not use the MVC pattern. Both of these structures force you to either start from scratch or reorganize your entire code base to follow the MVC pattern.

Almost all of my data is user objects with many myobject.prototype.myfunction = ..., and then serialized to / from JSON and stored on the server and jquery templates for rendering.

I am using jquery templates now and they work great. Obviously, I have no problem using them, except that I really don't like mixing business logic and DOM elements. If jQuery templates just had two-way data binding, I would be in heaven, but at the moment they do not. I know that jsRender and jsViews look promising, but their future is not yet set in stone and not ready for production. I need something that I can create a production code today, and also support and grow with and without rewriting / refactoring every two years.

So musts:

  • jquery compatibility
  • be checked to the end.
  • data binding
  • use existing javascript objects
  • does not require significant refactoring

P.S. Angular Backbone , , .

+5
4

Data Link jQuery, . github.

, jsViews

Knockout.JS - , jQuery. - , . Knockout jQuery .

+3

jsRender jsViews

jquery.tmpl. . - , , , jquery .

+3

Rivets.js. MVC/- - , - MVC, . Rivets.js .

JQuery.tmpl, (, ) KnockoutJS. , KnockoutJS, - . , , - . -, JS knockmeout.net . .

Considering that the future of jquery.tmpl is somewhat doubtful regarding this entry, I would recommend that you look for other solutions. KnockoutJS can be easily integrated with third-party template languages.

+2
source

It looks like you want to create a new template structure that provides data binding, while Angular and Backbone have a wider scope.

I know that LinkedIn uses Dust.js , which was selected after they made an extensive evaluation of JavaScript template libraries.

0
source

All Articles