<!DOCTYPE html>
<html>
<head>
    <title><%= title %></title>
</head>
<body>
    <h1><%= heading %></h1>
    <% if (users && users.length > 0) { %>
        <ul>
        <% users.forEach(function(user) { %>
            <li><%= user.name %> (<%= user.email %>)</li>
        <% }); %>
        </ul>
    <% } else { %>
        <p>No users found.</p>
    <% } %>
    <footer>
        <p>Generated at <%= new Date().toISOString() %></p>
    </footer>
</body>
</html>
