Tell me how you can connect html files one to another in a certain place and how to compress them in gulp?
- Have you tried the html-template engine pug ? - Alexander Kazakov
- @ "Alexandr Kazakov" just looked, but didn’t understand how to simply insert html in it in a certain place? Everything else, like the jade-like transformation, etc. in this case, I do not need. - Rakzin Roman
- pug , this is the jade under the new name (or did I misunderstand you?) - Alexander Kazakov
- @ "Alexandr Kazakov" Can I process the files, paste the contents of another file? For example, <div> insert content from file here {{c: \ path.to.file.html}} </ div> - Rakzin Roman
- I myself am a novice in it, so as not to waste your time in vain and not mislead you, I say I don’t know. If the question about pug is important to you, I can drop you a link to vk, the person who actively uses it, ask him, he uses pug and gulp. But I don’t know whether to give such links here - Alexander Kazakov
|
1 answer
Good day. Regarding the import of html in html there are such options http://www.webmasters.by/articles/html-coding/3288-html5-imports.html https://habrahabr.ru/post/230751/
As for import into pug, then it is possible to use block loading via AJAX
|