Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between jsRender and jsViews

Tags:

So jQuery templates will never get past beta and jsRender and jsViews are supposed to fill the void. I checked out the examples posted by Boris Moore on this page but I don't get the difference between jsRender and jsViews. Moreover Boris has used one in the example of the other to add to the confusion. So the question is how are two of them related (or different)?

like image 343
Juzer Ali Avatar asked Apr 01 '12 15:04

Juzer Ali


1 Answers

JsRender is the templating engine. JsViews is the data binding engine.

JsRender helps you render HTML using a template (static HTML/CSS with embedded tokens that get replaced with data). It supports simple logic, rendering values, and custom functions.

JsViews, which is built on top of JsRender, adds observability to objects/properties. This allows you to link your json objects to HTML targets and get 2 way data binding.

There's more to them, of course, but that's the 60 second answer. Does that help?

like image 197
John Papa Avatar answered Oct 14 '22 11:10

John Papa