Skip to content

Instantly share code, notes, and snippets.

@yamagata-kozo
Created December 18, 2012 03:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yamagata-kozo/4324772 to your computer and use it in GitHub Desktop.
Save yamagata-kozo/4324772 to your computer and use it in GitHub Desktop.
<h1>Fruits (ejs)</h1>
<table>
<thead>
<tr>
<th>Name</th>
<th>Price</th>
<th>Stock</th>
</tr>
</thead>
<tbody>
<% for (var i = 0; i < fruits.length; i++) { %>
<tr>
<td><%= fruits[i].name %></td>
<td>&yen;<%= fruits[i].price %></td>
<td><%= fruits[i].stock %></td>
</tr>
<% } %>
</tbody>
</table>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment