次の JSON を取得しました。
var data = [
{
"headline" : "This is headline",
"description": "This is description",
"icons": [
{
"url" : "http://farm9.staticflickr.com/8356/8404884161_f1d3efe9d6_b.jpg",
},
{
"url" : "http://farm9.staticflickr.com/8349/8167535290_d824c3e7d2_b.jpg"
}
]
}
];
そしてこのテンプレート:
<script type="text/template" id="items-tpl">
<h1> <%= headline %> </h1>
<p> <%= description %> </p>
<ul>
<li><%= url %></li>
</ul>
</script>
アンダースコアを使用してバックボーンでこれをレンダリングするための最良のアプローチは何ですか (または追加のライブラリを使用しない他の方法)