I understand that we can use:
var ele = "<div></div>";
$('body').append(ele);
However this is not as flexible as plain HTML, as all HTML is quoted...
I saw jQuery-templ so that we can use:
<script id='tmpl' type='text/html'>
<div>test</div>
</script>
<script>
$.tmpl('#tmpl').appendTo('body');
</script>
This is good, but this project is not continuing any more (though this is so useful!)
Is there anything similar to that?