TemplateEntityService Class
Service that is used to load the HTML templates from the file system. If the template is available it is compiled.
Methods
get
(
-
key -
cb
Retrieve a value from the file system. Will callback with an object with two properties. "key" the file path. "parts" an array of objects.
Parameters:
-
keyStringthe file path to the template
-
cbFunctionA callback function that takes two parameters: cb(Error, Object)
set
(
-
key -
value -
cb
This function is not implemented.
Parameters:
-
keyStringThe absolute file path
-
valueThe string content to set
-
cbFunctionCallback function
