jQuery Boilerplate is a skeletal framework for getting started with jQuery plugin development in minutes. The jQuery Boilerplate is object oriented and implements public, private methods and as well as public, private properties. Using the boilerplate, jQuery learners can get started with plugin development without having to start coding from the scratch. Personally I am a big fan of these boilerplates and I hope to see many more like this to come up in the future to simplify web development works.
$(document).ready(function() { // attach the plugin to an element $('#hello').pluginName({'foo': 'bar'}); // call a public method $('#hello').data('pluginName').foo_public_method(); // get the value of a property $('#hello').data('pluginName').settings.foo; });
I love this, if you too love this, say hi to the people behind this jQuery Boilerplate Zeno Rocha (@zenorocha) and Stefan Gabos (@stefangabos)