Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/lodash.js/0.5.2/lodash.min.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
  <script id="tmpl">
    <h1>Car Show!!!</h1>
    There are a total of <%= data.Cars.length %> cars in our show this week. 
    <h2>Cars:</h2>
    <ul>
    <% _.each(data.Cars,function(car){ %>
      <li>A <%= car.color %> <%= car.make %> </li>
    <% }) %>
  </ul>
    
    <h2>Colors:</h2>
    <ul>
    <% _.each(data.Colors,function(color){ %>
      <li><%= color %></li>
    <% }) %>
  </ul>
    <h2>Makes:</h2>
    <ul>
    <% _.each(data.Makes,function(make){ %>
      <li><%= make %></li>
    <% }) %>
  </ul>
  </script>
</body>
</html>
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers