<!DOCTYPE html>
<html lang="ja">
<head>
<title>jsRender</title>
<script src="//www.jsviews.com/download/jsrender.js"></script>
<script id="template" type="text/x-jsrender">
<div>
<h2>{{:title}}</h2>
<p>{{:body}}</p>
</div>
</script>
<script src="main.js"></script>
</head>
<body>
<div id="container"></div>
</body>
</html>
$(function(){
var tmpl = $.templates("#template");
var html = tmpl.render(data);
$("#container").html(html);
});