S
S
Syndr0me2019-06-21 15:00:22
JavaScript
Syndr0me, 2019-06-21 15:00:22

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

1 answer(s)
A
Alexander Marginal, 2019-11-28
@AlexanderMarginal

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 question

Ask a Question

731 491 924 answers to any question