<%
 var d = new Date();
  %>
<table>
    <tr>
        <th>Item</th>
        <th>Cost</th>
        <th>BTC</th>
        <th>Value</th>
    </tr>
    <% for( var i=0;i<items.length;i++)
    {

        var coins = items[i].usd / usd;
        var v = coins * gbp;
    %>

    <tr>
        <td><%=link_to(items[i].title, items[i].url)%></td>
        <td>&#36;<%=items[i].usd.toFixed(2) %></td>
        <td><%=coins.toFixed(4) %></td>
        <td>&pound;<%=v.toFixed(2) %></td>
    </tr>
    <%

    }



    %>

</table>
Last Update <%=d.toLocaleString()%>
