…The first templating library that we're going to…take a look at is called jQuery Template.…The nice thing about jQuery Template is that it's a plug in for jQuery.…And it leverages existing jQuery syntax.…And many websites already use jQuery.…So chances are, you're already familiar with…how to load and use this particular plugin.…It's used for simple templating.…There are no conditionals or logic in jQuery Template.…
And, if you do need to format data, there is…a simple formatting syntax that you can use with jQuery Template.…But jQuery template is mainly intended for relatively simple templating needs.…If you have a need to page through larger data sets, and you've probably seen this…where, you know, you have a page of data and then below the, the data or above the…data you've got these links that say you…know, show the next ten results or show the…previous ten results, and you've seen this on search…results pages and real estate websites and so on.…
jQuery Template makes that really pretty easy.…So to go and get jQuery Template, you can download it from it's GitHub page.…
- What is templating?
- Defining templates in jQuery Template
- Using simple Mustache templates with sections and conditions
- Adding conditionals and loops to Handlebars templates
- Working with Dust templates