stream-handlebars
Extends handlebars with a streaming interface for .compile().
Example
var handlebars = var fs = var template = '<p>\{{paragraph}}</p>' // it's just regular handlebars..handlebars // ..with the addition of a streaming interface for .compile()var compileStream = handlebars // the template is compiled using the piped-in JSON as contextfs
object
⏏
handlebars : The regular handlebars module.
Kind: Exported namespace
Extends: handlebars
Transform
handlebars.createCompileStream(template, [options]) ⇒ a stream wrapper for the handlebars.compile function
Kind: static method of handlebars
Param | Type | Description |
---|---|---|
template | string |
required template |
[options] | object |
options passed to both Transform() and .compile() |
[options.objectMode] | object |
set to true if you wish you pass in the data as an object |
[options.data] | object |
default data object |
© 2015-16 Lloyd Brookes <75pound@gmail.com>. Documented by jsdoc-to-markdown.