qdemo makes it possible for you to generate a simple demo playground for your plugin (handy for docs!). All you need to is to expose your plugin options in a certain way and attach qdemo to some element. See the source of this page for more details.
Copy jquery.qdemo.js to some appropriate place, link to it at your HTML, use
Check out opts and markup at source.
You can also clone the project with Git by running:
$ git clone git://github.com/bebraw/qdemo
Get the source code on GitHub : bebraw/qdemo