Do you know JsRender?

Do you know JsRender?

I am new to JsRender but still felt like discussing with my readers as may be one of our readers can provide more insights, after all, it’s a mutual learning that helps a community.

What is JsRender?

First thing that i learned is that it’s not an invention but an improvisation of a concept called Templating. We are not talking about server templates here but the UI templates which are already been achieved by JQuery templates. So the history of JsRender revolves around JQuery Templates. Aim of the approach is to achieve fast,robust and optimized applications.Idea behind JQuery templates is to convert the JSON objects to HTML and same applies to JsRender but differs in the advantages rendered by JsRender which makes it a preferable choice.There is a primary advantage of no dependency on either JQuery or DOM. It supports simple logic, rendering values, and custom functions.

Let’s work out an example

Download JsRender.js from https://github.com/BorisMoore/jsrender

First of all, we should know the html template required and then we will insert data by using variables. After that, we just need to call render method.

JsRender is not yet officially beta, though the APIs and code are now stable. JsViews, on the other hand, is still evolving (with a number of powerful features arriving), and its Beta is currently planned for February. Since this could lead to small API changes in JsRender (to accommodate JsViews integration), JsRender will not be declared officially Beta until around the same time.CodeProject

UI: Jquery is Javascript LibraryJquery Basics: With the title itself, anybody can deduce that we are indirectly talking about javascript only. So, we can say that Javascipt is the guardian of Jquery. These are client end technol...

jQuery: Effects/MethodsIn our last article, jQuery Part 1 , we covered the basic understanding and now we will move to Methods or effects available in jQuery. Hide/Show/Toggle Methods The most used method Hide/Show. Fr...

REST- REpresentational State TransferREST – REpresentational State Transfer, is an enhanced version of client server style architecture for distributed communication. When we talk about distributed communication, we think of reques...

My first introduction to Java AppletsWhat is it? An applet is a class file that is written to display graphics in web browser. We embed applets using <APPLET> HTML tags. When run in a web page, java applets are downloaded autom...

C#: Useful JSON in .NetWhy JSON? All web applications revolve around large chunk of data and availability of that data to our application is of utmost importance. To do that, we have options like fetch data from databas...

How To: Cross Page PostingWhat is a POST? Wikipedia says,The POST request method is designed to request that a web server accept the data enclosed in the request message's body for storage.It is often used when uploading a...