Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

152
Visualizações
Why with a new ejs the css is not applying?

I have an application express.js. In the views folder I have a partials folder and layout folder. I am using layouts = require("express-ejs-layouts"); in my server.js. In partial I have a header.ejs and footer.ejs. and in layout folder i have a file including the following code:

<%- include('../partials/header'); %>
<%- body %>
<%- include('../partials/footer') %>

Indeed, in views i have several .ejs files and all the routes works fines, I can render my pages where They apply the css already existing in a public folder.

The problem when I add a new .ejs in views. I can render this page but the css is not applying.

I dont know why. Any suggestion?

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda