Q.Handlebars Class
Creates a Q.Handlebars object
Methods
render
String | Null
Render handlebars template
Parameters:
-
template
String
-
data
Object
Optional. The data to render
-
partials
Array
Optional. The names of partials to load and use for rendering.
render
String | Null
Render handlebars literal source string
Parameters:
-
content
String
-
data
Object
Optional. The data to render
-
partials
Array
Optional. The names of partials to load and use for rendering.
template
String | Null
Load and return the content of a handlebars template (synchronously)
Returns:
String | Null:
The content of the template, or null if it wasn't found