Plugin Template

Plugin template for jQuery. Template to use when creating your own jQuery plugins.

Version:
1.1
Last Updated:
Jun 10, 2009
Requires:
jQuery 1.x+
Download:
http://freerksen.googlecode.com/files/jquery_plugin_template_1.1.zip

This is the template I use when creating all of my jQuery plugins. There are a lot of plugin templates out there (here, here, here, or here). The big different between those and mine, is I have included a couple important helper methods to make development faster as well as information on what everything is used for and does inside the template.

Let’s face it. When you start writing your very first plugin, you have no idea what you are doing. It helps to at least have a solid base to start with. Even seasoned plugin authors can use this for rapid development.

History:
090609 – Completed. Initial release.
090610 – Added sample object function inside return this.each(function(){…});

There are no comments

Add a Comment

Allowed tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">