Answer the question
In order to leave comments, you need to log in
How to make HTML components in Gulp?
I'm trying to implement an analogue of React components, but in the form of plain HTML in Gulp. I used the Nunkucks plugin to include small files in other files, but I didn't understand if it was possible to make a repeatable component there.
For example, if I need to display a group of products. How can this be done with Nunjucks or Pug for example? Maybe there is something more interesting?
I also like the idea of splitting data from a JSON file.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question