Plugins

User login
Can't find a Plugin?

Can't find a Plugin you are looking for? Check out the jQuery Wiki page.

Are you a plugin developer? Please move your plugin over to this site.

Website Bug or Feature Request?

Found a bug on the new jQuery Plugin website? Have a feature request?

Submit it to the jQuery Plugin website issue queue to ensure it is noticed!

jQuery Templates


Average rating
(5 votes)

Similar to the macro-based templates in the popular javascript library Ext, jQuery templates offer ways of creating html chunks and applying an object of attributes to them via the jQuery DOM manipulation methods. Variable types default to JSP-style, however they can be customized to other variable styles for the plugin as well as for individual template objects. Via helper methods, variable functions can be applied to variables within the templates as well.

Example:

var t = $.template('<div id="foo">Hello ${name}, how are you ${question}?  I am ${me:substr(0,10)}</div>');

$(selector).append( t , {
     name: 'Stan',
     question: 'feeling',
     me: 'doing quite well myself, thank you very much!'
});

Releases

Official releasesDateSizeLinksStatus
1.0.02008-Mar-227 KBRecommended for 1.2.xThis is currently the recommended release for 1.2.x.