webroo / dummy-json

Generates random dummy JSON data in Node.js
MIT License
380 stars 61 forks source link

nesting {{#repeat {{int min max}}}} #27

Closed everdrone closed 4 years ago

everdrone commented 7 years ago

please allow nesting {{int min max}} inside {{lorem N}}, {{#repeat N}}

filipeovercom commented 4 years ago

Duplicate of #18

webroo commented 4 years ago

As of v3.0.0 you can repeat a block a random number of times by giving min and max bounds: {{repeat min=5 max=10}}

and you can use the same syntax with the lorem ipsum helper: {{lorem min=20 max=40}}