atualizado

This commit is contained in:
2024-11-28 14:59:42 -04:00
parent a3cacc8a3e
commit 578b87e9f5
5 changed files with 29 additions and 9 deletions

View File

@@ -14,9 +14,11 @@
<input type="submit" value="buscar">
</form>
<ul>
<li><a href="/produtos/produto-1"> Produto 1</a></li>
<li><a href="/produtos/produto-2"> Produto 2</a></li>
<li><a href="/produtos/produto-3"> Produto 3</a></li>
<% produtos.forEach((produto) => { %>
<li>
<a href="/produtos/<%= produto.id %>"><%= produto.nome %></a>
</li>
<% }) %>
</ul>
</body>
</html>

View File

@@ -7,6 +7,8 @@
<title>Produtos</title>
</head>
<body>
<h1><%= titulo %></h1>
<h1><%= produto.nome %></h1>
<img src="<%= produto.imagem %>" alt="" srcset="">
<p>R$ <%= produto.preco %></p>
</body>
</html>