mirror of
https://gitea.smigz.com/smiggiddy/odin-codeprojects.git
synced 2024-12-27 06:40:42 -05:00
add views dir
This commit is contained in:
parent
03548eeb1e
commit
e87ed73094
2 changed files with 19 additions and 0 deletions
6
basic-info-node-backend/src/views/index.ejs
Normal file
6
basic-info-node-backend/src/views/index.ejs
Normal file
|
@ -0,0 +1,6 @@
|
|||
<html>
|
||||
<body>
|
||||
<%- include('navbar', {links: links}) %>
|
||||
<%= message %>
|
||||
</body>
|
||||
</html>
|
13
basic-info-node-backend/src/views/navbar.ejs
Normal file
13
basic-info-node-backend/src/views/navbar.ejs
Normal 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>
|
||||
|
Loading…
Reference in a new issue