This plugin is started using the Micro-Templating concept by John Resig to separate HTML markup from Javascript code in JSON based applications. This concept solves the problem of outputting ugly strings of HTML very nicely, but the original code snippit was a little hard to understand for those of us who are not Javascript Ninjas (a book by John Resig). To fix this a simple jQuery plugin has been created.
This resulted in the following easy to use plugin. Please read the documentation for further information.
$("#someElement").fromTemplate("templateId", dataset)