<html> <h1>Tracking Log</h1> <table border="1"><tr><th>datetime</th><th>username</th><th>ipaddr</th><th>source</th><th>type</th></tr> % for rec in records: <tr> <td>${rec.time}</td> <td>${rec.username}</td> <td>${rec.ip}</td> <td>${rec.event_source}</td> <td>${rec.event_type}</td> </tr> % endfor </table> </html>