<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Cache Items</title>
    <style>
        .nested-list {
            padding-left: 20px;
        }
    </style>
</head>
<body>
    <h1>Cached Items</h1>

    {% macro render_nested_dict(d) -%}
        <ul class="nested-list">
        {%- for key, value in d.items() %}
            {%- if isinstance(value, dict) %}
                <li>{{ key }}: {{ render_nested_dict(value) }}</li>
            {%- else %}
                <li>{{ key }}: {{ value }}</li>
            {%- endif %}
        {%- endfor %}
        </ul>
    {%- endmacro %}

    <h2>Bioguide ID Cache</h2>
    {{- render_nested_dict(bioguideId) -}}

    <h2>Legislation Cache</h2>
    {{- render_nested_dict(legislation) -}}
</body>
</html>
