loop the sites array
This commit is contained in:
@@ -3,6 +3,12 @@
|
||||
<article class="container mx-auto py-4 min-h-[70dvh]">
|
||||
<h2>Welcome to the <%= title %> EJS Template</h2>
|
||||
<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>
|
||||
|
||||
<%- include('footer'); -%>
|
||||
|
||||
Reference in New Issue
Block a user