E
E
Erling2016-05-16 17:09:06
HTML
Erling, 2016-05-16 17:09:06

How to include html files?

I am developing a project on Bootstrap, building it in Gulp. The question arose of how to split pages into subtemplates so as not to make changes in each document separately (for example, by analogy with wordpress templates: header, footer, single etc).
I would like to optimize this process, because the number of pages being developed is increasing, and editing everything manually is unproductive.
I type without html-preprocessors, I use browsersync (if it is important for my question).
Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey delphinpro, 2016-05-16
@Erling

Take gulp-twig
You won't need to convert anything (like with asshole), just change the file extensions
You can just use the includes
And if necessary, then the full power of the templating engine.

Z
zooks, 2016-05-16
@zooks

Still, I recommend Jade (Pug) jade-lang.com
for these purposes. Setting it up is a matter of 5 minutes. Convert the existing layout to the .jade format - too.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question