Methods
compile(dir:, cb:)
Compile all template files (identified by file extension) in a directory.
This can be done in parallel because compiling a template does not depend on other templates.
Parameters:
Name | Type | Description |
---|---|---|
dir: |
String
|
directory containing the templates |
cb: |
function
|
standard cb(err, result) callback |
merge(dir:, templates:, params:, cb:)
Compile all template files (identified by file extension) in a directory.
This can be done in parallel because compiling a template does not depend on other templates.
Parameters:
Name | Type | Description |
---|---|---|
dir: |
String
|
output directory where website files will be written to |
templates: |
Object
|
compiled jazz templates |
params: |
Object
|
template parameters and functions |
cb: |
function
|
standard cb(err, result) callback |