Skip to content

Instantly share code, notes, and snippets.

@johnschimmel
Created March 18, 2012 18:58
Show Gist options
  • Select an option

  • Save johnschimmel/2079811 to your computer and use it in GitHub Desktop.

Select an option

Save johnschimmel/2079811 to your computer and use it in GitHub Desktop.
displayAll.html
<!doctype html>
<html>
<body>
<h1 class="page-header">
Cab.ly
</h1>
<h2>
Driver Information
</h2>
<p>
<ul>
<!-- loop through all drivers -->
<% for(i=0; i < drivers.length; i++) { %>
<li>
<%=drivers[i].firstName %>
</li>
<li>
<%=drivers[i].lastName %>
</li>
<li>
<%=drivers[i].driverID %>
</li>
<li>
<%=drivers[i].ratingNumber %>
</li>
<li>
<%=drivers[i].comment %>
</li>
<% } %>
</ul>
</p>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment