new TemplateManager(options)
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
options |
object |
Properties
|
Members
_env :Object.<string, any>
Type:
- Object.<string, any>
_options :object
Properties:
Name | Type | Description |
---|---|---|
_fs |
FSLibrary |
Type:
- object
_viewer :TemplateManagerViewer
Type:
Methods
add(templateName, filePath)
Parameters:
Name | Type | Description |
---|---|---|
templateName |
string | |
filePath |
string |
addList(templates)
Parameters:
Name | Type | Description |
---|---|---|
templates |
Object.<string, string> |
get(templateName) → {TemplateManagerTemplate}
Parameters:
Name | Type | Description |
---|---|---|
templateName |
string |
Returns:
remove(templateName)
Parameters:
Name | Type | Description |
---|---|---|
templateName |
string |
render(response, templateName, varsopt)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
response |
SGAppsServerResponse | ||
templateName |
string | ||
vars |
Object.<string, any> |
<optional> |
templateExists(templateName) → {boolean}
Parameters:
Name | Type | Description |
---|---|---|
templateName |
string |
Returns:
- Type
- boolean