<!doctype html>
<html>
<head>
<meta charset=utf-8>
<title>Q&A</title>
</head>
<body>
<script id= blogTemplate type=tuts/template>
<h2> {{title}} </h2>
<img src={{thumbnail}} alt={{title}}>
</script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
<script>
( function() {
var content = [
{
title: 'My awesome blog post',
thumbnail: 'http://cdn.tutsplus.com/net.tutsplus.com/uploads/2013/06/david-walsh-preview.jpg',
},
{
title: 'My second awesome blog post',
thumbnail: 'http://cdn.tutsplus.com/net.tutsplus.com/uploads/2013/06/ribbit-meteor-preview.jpg',
}
],
template = $.trim( $('#blogTemplate').html() );
$.each( content, function ( index,obj ) {
var temp =
template.replace(/{{title}}/ig, obj.title )
.replace(/{{thumbnail}}/ig, obj.thumbnail );
$(document.body).append(temp);
});
</script>
</body>
</html>
what is the code , so error: