I'm making a new website, I'm with the template ready and I want to implement handlebars.js,
To control the template I have always used:
<php include "header.php"; ?>
<php include "footer.php"; ?>
and so on.
I want to improve the level of my projects using handlebars.js but I do not know how to control the template with good practices. I believe creating one:
<script id="header" type="text/x-handlebars-template"></script>
And putting my whole header in there with all tags and css calls would not be a good practice. What would be the best switch for includes?