Proper way to use $.tmpl in jQuery
<p>I'm using tmpl in many places but I see a lot of repeats in my code like</p>

<pre><code>$('#sel').html('');    // cleanup
$.tmpl('template', data).appendTo('#sel');
</code></pre>

<p>looks like I'm missing something, this should be possible with $.tmpl only. Any idea?</p>
