Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="http://cdnjs.cloudflare.com/ajax/libs/handlebars.js/1.0.0/handlebars.js"></script>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body>
  <script id="cool" type="text/x-handlebars-template">
    {{#each this}}
      <p>{{socool}}</p>
    {{/each}}
  </script>
</body>
</html>
 
    var cool = {cool: {
      'socool': "bbrrrrrr!"    }};
    var compiled = Handlebars.compile(document.getElementById("cool").innerHTML);
console.log(compiled(cool));
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers