Answer the question
In order to leave comments, you need to log in
How to use gulp to generate a separate html page for each element from a JSON array?
Apologies for the abstract
products.json example
[{
"products": [
{
"Title":"Product 1",
"Description":"Text 1",
"Price":"500"
},
{
"Title":"Product 2",
"Description":"Text 2",
"Price":"2000"
},
{
"Title":"Product 3",
"Description":"Text 3",
"Price":"1000"
}
]
}]
doctype html
html
head
meta(charset="utf-8")
body
h1= Title
p= Description
h4= Price
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