New to web programming. I was wondering if it was common to use includes to template a page. For example you have header, nav, and footer code all in separate files, and then you include them for a specific page with the content varying. How is this different from templating languages or templating engines like Smarty I’ve been coming across in my research?
Share
IMHO I like rather having a single layout view that contains anything that does not move across pages.
You may have a look at TWIG template engine.
It makes it very easy
layout.html.twig
page.html.twig