コードは Addy Osmani: Learning JavaScript Design Patternsからのもので、実際には実装できませんでした。
私はここで目が見えないかもしれませんが、これの何が問題なのかわかりません:
ReferenceError: 変数が見つかりません: items
アンダースコア テンプレート:
<script id="resultTemplate" type="text/html">
<% _.each(items, function( item ){ %>
<li><p><img src="<%= item %>"/></p></li>
<% });%>
</script>
jQuery:
var resultTemplate = _.template($("#resultTemplate").html());
[...]
デモ: jsFiddle