V
V
Vitaly Kuznetsov2019-05-02 15:07:06
HTML
Vitaly Kuznetsov, 2019-05-02 15:07:06

How to quickly automate site layout using html templating / preprocessor? Is there a starter kit?

I often make up multi-page sites and a lot of hassle with copy-pasting some ready-made elements to all pages.
What and how can this whole thing be automated? Heard about using webpack, gulp, nunjucks and all that.
Is there some kind of ready-made starterkit that is simple and understandable purely for layout, not a full-fledged frontend?
Those. you need to create ready-made html for transfer to integration into some cms, etc.
update
Issue solved.
nodejs + gulp + pug and generally discovered a new marvelous world of layout assembly automation)

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
A person from Kazakhstan, 2019-05-02
@LenovoId

the best preprocessor for html is php - this is not my opinion and no need to argue

T
ThunderCat, 2019-05-02
@ThunderCat

https://habr.com/ru/post/230877/
Is it?

L
Lord_Dantes, 2019-09-06
@Lord_Dantes

I use the template that my mentor created for me)))
https://github.com/lord-dantes/pug-scss-start_v2.0
Under the hood there, SASS / SCSS + Pug
Installation:
Clone the turnip into a folder, then go into it and write the following commands:
npm i
bower i
gulp watch
If gulp or bower fails, install them in a folder or globally like.
npm i bower / npm i gulp

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question