October 01, 2009

Basics of using jTemplate

0 comments


Hi All,

jTemplate is a wonderful plugin for json data. It reduces a lot of markup repition on client-side. It works like a repeater control in asp.net but the repeater is implemented on the client-side.Following are simple steps to implement jTemplate.

First in the head section put the following code.









That is all for the head part. Now in the body section
have a container element(div works) which will list
the json data.





Now you can see the result of json data printed
as li elements on the page.