<!DOCTYPE html>
<html>
    <head>
        <title><%= $site->title %></title>
    </head>
    <body>
        <nav>
            % for my $nav ( @{ $site->nav->{ main } } ) {
                <a href="<%= $nav->{href} %>"><%= $nav->{title} %></a>
            % }
        </nav>
        <%= $content %>
    </body>
</html>
