<!DOCTYPE html>
<html>
<head>
   <title>{{ title }}</title>
   <style type="text/css">
      body {
         font-family: sans-serif;
      }
      table {
         border-collapse: collapse;
         width: 100%;
      }
      th, td {
         border: 1px solid #cccccc;
         padding: 0.3em;
      }
      tr {
         page-break-inside: avoid;
      }
      .timestamp {
         float: right;
         font-size: 1.5em;
         color: #ccc;
         font-weight: lighter;
      }
   </style>
   {% for file in include.css %}
      <link rel="stylesheet" type="text/css" href="{{ file }}">
   {% endfor %}
</head>
<body>
<span class="timestamp">{{ timestamp }}</span>
<h1>{{ title }}</h1>
<table>
   <thead>
      <tr>
         {% for key in columnOrder %}
            {% set column = columns[key] %}
            {% if not column.hidden %}
               <th>{{ column.value }}</th>
            {% endif %}
         {% endfor %}
      </tr>
   </thead>
   <tbody>
      {% for row in rows %}
         <tr>
            {% for key in columnOrder %}
               {% set column = row.values[key] %}
               {% if not column.hidden %}
                  <td>{{ column.value }}</td>
               {% endif %}
            {% endfor %}
         </tr>
      {% endfor %}
   </tbody>
</table>
</body>
</html>

<!DOCTYPE html>
<html>
<head>
   <title>{{ title }}</title>
   <style type="text/css">
      body {
         font-family: sans-serif;
      }
      table {
         border-collapse: collapse;
         width: 100%;
      }
      th, td {
         border: 1px solid #cccccc;
         padding: 0.3em;
      }
      tr {
         page-break-inside: avoid;
      }
      .timestamp {
         float: right;
         font-size: 1.5em;
         color: #ccc;
         font-weight: lighter;
      }
   </style>
   {% for file in include.css %}
      <link rel="stylesheet" type="text/css" href="{{ file }}">
   {% endfor %}
</head>
<body>
<span class="timestamp">{{ timestamp }}</span>
<h1>{{ title }}</h1>
<table>
   <thead>
      <tr>
         {% for key in columnOrder %}
            {% set column = columns[key] %}
            {% if not column.hidden %}
               <th class="{{ key }}">{{ column.value }}</th>
            {% endif %}
         {% endfor %}
      </tr>
   </thead>
   <tbody>
      {% for row in rows %}
         <tr>
            {% for key in columnOrder %}
               {% set column = row.values[key] %}
               {% if not column.hidden %}
                  <td class="{{ key }}">{{ column.value }}</td>
               {% endif %}
            {% endfor %}
         </tr>
      {% endfor %}
   </tbody>
</table>
</body>
</html>

Add data field key to table cell
Add data field key to table cell
