In this tutorial, we'll look at how to use static files in an ExpressJS project.
In previous lessons we've looked at how to create Express JS templates and routes but you might also want to include stylesheets and external JavaScript files.
In this video, we'll look at how you can access the public folder in ExpressJS and server your own JS, CSS and images using the static feature of Express.
This also seems like a good time to introduce EJS partials which is a way to include other EJS files in your views. This allows you to create headers and footer for each of your views without having to copy and paste. Channel Handle @codebubb
Nesta página do site você pode assistir ao vídeo on-line NodeJS Essentials 27: Using Static Content duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Code With Bubb 19 Junho 2019, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 1,090 vezes e gostou 23 espectadores. Boa visualização!