Handlebars template helper for generator lorem-ipsum placeholder text.
Install with npm
npm i handlebars-helper-lorem --savenpm testThis should work with any engine, here are a few examples
template.helper('handlebars-lorem', require('handlebars-helper-lorem'));Assemble ^0.6.0:
assemble.helper('handlebars-lorem', require('handlebars-helper-lorem'));Assemble ^0.4.0:
You'll have to pass assemble's instance of handlebars to the helper.
var handlebars = require('assemble/.../handlebars');
require('handlebars-helper-lorem')(handlebars);
assemble: {
options: {}
}Verb ^0.3.0:
verb.helper('handlebars-lorem', require('handlebars-helper-lorem'));var handlebars = require('handlebars');
handlebars.registerHelper('handlebars-lorem', require('handlebars-helper-lorem'));Handlebars:
// 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();Pull requests and stars are always welcome. For bugs and feature requests, please create an issue
Jon Schlinkert
Copyright (c) 2014 Jon Schlinkert
Released under the MIT license
This file was generated by verb on November 13, 2014.