Difference between jsRender and jsViews

Juzer Ali picture Juzer Ali · Apr 1, 2012 · Viewed 8.2k times · Source

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)?

Answer

John Papa picture John Papa · Apr 2, 2012

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?