add views dir

This commit is contained in:
Mike 2024-12-25 17:41:55 -05:00
parent 03548eeb1e
commit e87ed73094
2 changed files with 19 additions and 0 deletions

View file

@ -0,0 +1,6 @@
<html>
<body>
<%- include('navbar', {links: links}) %>
<%= message %>
</body>
</html>

View file

@ -0,0 +1,13 @@
<!-- navbar.ejs -->
<nav>
<ul>
<% for (let i = 0; i < links.length; i++) { %>
<li>
<a href="<%= links[i].href %>">
<span> <%= links[i].text %> </span>
</a>
</li>
<% } %>
</ul>
</nav>