loop the sites array

This commit is contained in:
Aarish
2025-05-24 17:43:57 -05:00
parent 712df1d8a0
commit 8fa0656366

View File

@@ -3,6 +3,12 @@
<article class="container mx-auto py-4 min-h-[70dvh]"> <article class="container mx-auto py-4 min-h-[70dvh]">
<h2>Welcome to the <%= title %> EJS Template</h2> <h2>Welcome to the <%= title %> EJS Template</h2>
<p>This is a simple example of using EJS for templating.</p> <p>This is a simple example of using EJS for templating.</p>
<ul>
<% for (let i = 0; i < sites.length; i++) { %>
<li><%= sites[i].name %></li>
<% } %>
</ul>
</article> </article>
<%- include('footer'); -%> <%- include('footer'); -%>