개발/Node.js2024. 10. 28. 22:48Pug(2)
1. Partial - View 파일마다 매번 복붙하여 화면을 통일해도 되지만 고정된 부분들을 따로 관리하고 싶을 때 사용하는 것이 Partial// src/views/partials/footer.pugfooter © #{new Date().getFullYear()} Wetube// home, watch.pug에 include include partials/footer- https://pugjs.org/language/includes.html Includes – PugIncludes Includes allow you to insert the contents of one Pug file into another. //- index.pug doctype html html include includes..