new FaceboxTemplate(options)
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
options |
object |
Properties
|
Members
_cachedFiles :Object.<string, string>
Type:
- Object.<string, string>
_debug :boolean
Type:
- boolean
_env :Object.<string, any>
Type:
- Object.<string, any>
INCLUDE_LEVEL :number
Type:
- number
Methods
render(text, vars, env)
This:
Parameters:
Name | Type | Description |
---|---|---|
text |
string | |
vars |
Object.<string, any> | |
env |
Object.<string, any> |
renderCode(code, vars, callback, virtualFilePath)
This:
Parameters:
Name | Type | Description |
---|---|---|
code |
string | |
vars |
Object.<string, any> | |
callback |
function | |
virtualFilePath |
string |
renderFile(filePath, vars, callback)
This:
Parameters:
Name | Type | Description |
---|---|---|
filePath |
string | |
vars |
Object.<string, any> | |
callback |
function |