Given
<div id="place_holder" />
<script id="template" type="text/x-jquery-tmpl">
WHAT DO I PUT HERE
</script>
var array_of_ints = [1,2,3]
$( "#template" )
.tmpl( array_of_ints )
.appendTo( "#place_holder" );
What can I put within the template to get ?
<ul>
<li>1</li>
<li>2</li>
<li>3</li>
</ul>
<div id="place_holder" />
<script id="template" type="text/x-jquery-tmpl">
{{= $data}}
</script>
var array_of_ints = [1,2,3]
$( "#template" )
.tmpl( array_of_ints )
.appendTo( "#place_holder" );
{{= $data}} works everywhere ( ${} wont work in strings in the template )