Answer the question
In order to leave comments, you need to log in
How to get data from files using gulp, run through a function, and get html files?
There is an empty project.
You need to take files with a json structure like BEMJSON from folder A, run them through a self-written function, collect an HTML page and return HTML pages to folder B as a file.
How can this be implemented?
Answer the question
In order to leave comments, you need to log in
const fs = require('fs')
Well, you can continue to work with the file system using node.
For page templates, I recommend gulp-twig
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question