3
I am making a new website, I have the template ready and I want to implement handlebars.js,
To control the template I always used:
<php include "header.php"; ?>
<php include "footer.php"; ?>
and etc.
I want to improve the level of my projects using handlebars.js but I don’t know how to control the template with good practices. I believe that creating a:
<script id="header" type="text/x-handlebars-template"></script>
and putting all my header in there with all the tags and css calls would not be a good practice. Which would be the best alternated for includes?
Either there are many possible answers or good answers would be too long for this format. Add details to reduce the set of answers or isolate a question that can be answered in a few paragraphs.
– gmsantos