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)



This makes no sense whatsoever, jQuery Boiler Plate doesn’t implement “data()”.
Hi,
i am also using jqueryboilerplate – it’s awesome!
But i don’t understand your method call $(‘#hello’).data(‘pluginName’).foo_public_method();
Like Shawn said, ‘data’ is not implemented. So how is it possible to call a method inside the plugin?
…now i understand.
$(‘#hello’).data(‘plugin_[pluginName]‘).foo_public_method();
GREAT!