jquery.pluginTemplate

Simple jQuery plugin template with CommonJS and AMD support.


Install
bower install jquery.pluginTemplate

Documentation

#jquery.pluginTemplate

Simple jQuery plugin template with CommonJS and AMD support.


###Configuration

{
	'name' : 'myPlugin',
	'isStatic' : false,
	'factory' : function ($) {
		return function () {
			// implementation
		};
	}
}

#####name This is simply the name of the plugin.

#####isStatic A value of true will result in a static plugin that is referenced via $.myPlugin(), where a value of false will result in a plugin that expects a valid jQuery object. For example, $('#myElement').myPlugin().

#####factory Just replace the "// implementation" comment with your plugin code.

Bower installation

bower install jquery.pluginTemplate