How to automate website layout using html template language/preprocessor? There are some starterkit?

Often typeset page a lot of sites and a lot of hassle with copy-paste some ready-made items in all pages.

What and how is the whole thing can be automated? Heard about to use webpack, gulp nunjucks and all that.

There are some ready starterkit understandable purely for layout, not a full frontend?

Ie we must create the html for transmission to the integration in some cms, etc.

update
The question is decided.

nodejs + gulp + pug and generally discovered the brave new world of automation Assembly layout)
March 20th 20 at 11:30
3 answers
March 20th 20 at 11:32
the best preprocessor for html, this php is not my opinion and do not argue
I may not be clearly written. I need to build the html and no server-side interpretation))))

I need the locale to build the html part of the template, like header, footer, pop-UPS, etc., etc. - Hobart.Muller commented on March 20th 20 at 11:35
@Reba, and not necessarily use them all, you can collect pieces of code in a particular component, and output one line per 1000000 pages ...sorry if I'm wrong

it's just easier for me than js preprocessors, pug and the like - Nicola87 commented on March 20th 20 at 11:38
@Grant.Murazik, uh, maybe) but then I will be able to do it on asp.net mvc c# ) this business know. - Hobart.Muller commented on March 20th 20 at 11:41
@Reba, ahhh....well, then you, too, so easier ...
I'm not clever but I will say the words of Bruce Lee : If you want to throw a pack is not necessary for it to roll over 100 times, as in Wushu do it ...the meaning is understood ? - Nicola87 commented on March 20th 20 at 11:44
@Grant.Murazik, yeah) - Hobart.Muller commented on March 20th 20 at 11:47
March 20th 20 at 11:34
Similar but not quite right.

I want something like scss, sass but for html :-) - Hobart.Muller commented on March 20th 20 at 11:37
Also now for a while in search of something similar, and while suitable for their needs - understand that you still need to be specifically for yourself to collect yourself. Most likely ready - and took the battle - can not find work, max is to choose a decision and finished already optimal for yourself.
For example, take the famous start screen OptimizedHTML 4 - for some purposes cut out bootstrap, sass replaced by less, well more like add a pug.
For other purposes for some other build. - marjory33 commented on March 20th 20 at 11:40
March 20th 20 at 11:36
Yuzayu templat who created me is still my mentor)))
https://github.com/lord-dantes/pug-scss-start_v2.0
Under the hood there, SASS/SCSS + Pug

Installation:
Clone repo to a folder then go into it and write the following command:
npm i
bower i
gulp watch

If the errors with galpon or boorom place them in a folder or globally tipo.
npm i bower / npm i gulp

Find more questions by tags HTMLLayoutTemplate buildersPreprocessors