Handlebars template helper for generator lorem-ipsum placeholder text.
npm install handlebars-helper-lorem> Handlebars template helper for generator lorem-ipsum placeholder text.
``bash`
npm i handlebars-helper-lorem --save
`bash`
npm test
> This should work with any engine, here are a few examples
`js`
template.helper('handlebars-lorem', require('handlebars-helper-lorem'));
Assemble ^0.6.0:
`js`
assemble.helper('handlebars-lorem', require('handlebars-helper-lorem'));
Assemble ^0.4.0:
`js`
assemble: {
options: {
// also be sure to add the helper to dependencies or devDependencies in package.json
helpers: ['handlebars-helper-lorem']
}
}
Verb ^0.3.0:
`js`
verb.helper('handlebars-lorem', require('handlebars-helper-lorem'));
`js`
var handlebars = require('handlebars');
handlebars.registerHelper('handlebars-lorem', require('handlebars-helper-lorem'));
Handlebars:
`js
// use default options
var template = Handlebars.compile('{{lorem}}');
var result = template();
// pass options on the context
var context = {count: 7, units: 'words'}
var template = Handlebars.compile('{{lorem this}}');
var result = template(context);
// pass options on the helper hash
var template = Handlebars.compile('{{lorem count="7" units="words"}}');
var result = template();
``
Jon Schlinkert
+ github/helpers
+ twitter/helpers
*
_This file was generated by verb on November 11, 2014._