'Rota Include EJS

rotas

´´´

<%- include() %>

´´´

como posso usando include colocar o header.ejs que se encontra dentro do parts no arquivo ProdutosIncluir.ejs:

ejs


Solution 1:[1]

Search in docs for partials.

But, basically you create your eg header.ejs file within your views folder. Then you can <%- include(‘header‘) %>

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 VebDav