DEV Community

Discussion on: One thing led to another and I built my own static site generator today

Collapse
 
devvyd profile image
Dāvis Naglis • Edited

Re-usability, for the most part. You don't want to just copy paste the same exact code in every page. You make a partial, for example, that damned footer you want to put in the same page - now you don't have to copy & paste manually all the time. Just add an include to it.

Another thing - change something in the partial file -> it reflects everywhere you do it. You don't want to hunt down that exact code in every damn page.