Methods
compile(source:, optionsopt, options["parser:debug"]opt, options["compiler:debug"]opt) → {Object}
Compile a Jazz template into an executable program.
Parameters:
| Name | Type | Attributes | Description | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
source: |
string
|
template source text | |||||||||
options |
Object
|
<optional> |
optional compiler and parser options
|
||||||||
options["parser:debug"] |
boolean
|
<optional> |
enable parser debug mode | ||||||||
options["compiler:debug"] |
boolean
|
<optional> |
enable compiler debug mode |
Returns:
- Type:
-
Object
compiled program with process(namespace, cb)