The way developers are exploring are generators that do this for you. We have some good ones like the Jekyll and the Middleman. I chose to use Jekyll and it helps me a lot with a language that independent of the programmer, the understanding of the algorithm becomes easy.
For example, when I have a home page that has 10 products, I make 1 model of what it would be like and one for iterating this repetition.
Example of the Jekyll:
<div class="produtos">
{% for i in (1...9) %}
<div class="product-align">
<div class="product" itemscope itemtype="http://schema.org/Product">
<img itemprop="image" class="product-image center-block" alt="imagem produto" src="assets/images/produto01.png">
<p class="product-title" itemprop="name">Cadeira Tulipa</p>
<p class="product-review" itemprop="review">Clássica criação de Pierre Paulin</p>
<div class="price" itemprop="offers" itemscope itemtype="http://schema.org/Offer">
<!-- div que separa itens referente ao preço de cada produto -->
<p class="product-price">De: R$2,999.00</p>
<!-- preço original -->
<p class="final-product-price" itemprop="price">Por: R$2,000.</p>
<!-- preço com desconto -->
<p class="parcel-product-price">Ou até 6x de R$250,00.</p>
<!-- preço parcelado -->
</div>
<a href="produto.html">
<button class="btn-see-more" type="button">Veja mais</button>
</a>
</div>
</div>
{% endfor %}
</div>
Jekyll allows you to send HTML together as if it were a kind of "merge" of pages and allows you to send as I sent above. You can send the 2 forms to the customer and he takes care of everything else. This is the most indicated way.
It would probably be good for you to do everything separately, but put it together in a template to deliver, with comments for the <!-- start of the.htm menu content - switch to include -->... ai poe o html do menu.htm..<! -- end of the menu contents.htm -->, I think it is simpler. Then the client sees working, and the programmer changes it later. (i.e., provide everything separately, plus a mixed demo file)
– Bacco
exact, I’m afraid to do something to try to separate and in the end get all confused.. like making a giant js code to call the includes.. will find q is necessary. .enfim.. would like to know if there is already something in Html5 searched and found nothing that works!
– Dorathoto
And there’s another, so I said, you can develop in your environment using your language includes, (just by the comments I mentioned above and below each include), and at the time of delivering to the customer you save the browser source same as "arquivomontado.html" and delivery together. Then he turns around (of course, if you can, explain to the programmer what you did).
– Bacco
I don’t know if the answers are really "outdated", but it doesn’t really have any complete ones that talk about multiple ways to solve the problem. Unfortunately I’m running out of time to complement mine - and it seems that people are voting blindly on it because it’s on top...
– bfavaretto
@bfavaretto your option is very clear and efficient, provided you have a webserver with server-side feature... but as you said, I’m seeing if there are other updated options...etc
– Dorathoto
@Dorathoto can explain what you mean by "due to recent amendments"?
– Sergio