webroo / dummy-json

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

How do i add lorem text to this ? #1

Closed Anenth closed 8 years ago

Anenth commented 10 years ago

How do i add lorem text to this lib

guiprav commented 10 years ago

@Anenth, you can write your own Handlebars helper for this (See https://github.com/webroo/dummy-json#using-your-own-handlebars-helpers for details.)

In the helper you could just call whatever lorem ipsum generator lib you like, such as https://www.npmjs.org/package/lorem-ipsum, for example.

I hope that helps.

webroo commented 10 years ago

@Anenth I've tried to make the library as extensible as possible without needing to fork and modify it. A lot of the default functionality is overridable, as is the ability to write additional helpers. @n2liquid mentions the perfect way of achieving this.

webroo commented 8 years ago

A lorem ipsum helper has been added to v1.0.0