Optional
string: stringThe template string.
Optional
options: TemplateOptionsThe options object.
The HTML "escape" delimiter.
The "evaluate" delimiter.
An object to import into the template as free variables.
The "interpolate" delimiter.
The sourceURL of the template's compiled source.
The data object variable name.
Returns the compiled template function.
Creates a compiled template function that can interpolate data properties in "interpolate" delimiters, HTML-escape interpolated data properties in "escape" delimiters, and execute JavaScript in "evaluate" delimiters. Data properties may be accessed as free variables in the template. If a setting object is provided it takes precedence over _.templateSettings values.
Note: In the development build _.template utilizes sourceURLs for easier debugging.
For more information on precompiling templates see lodash's custom builds documentation.
For more information on Chrome extension sandboxes see Chrome's extensions documentation.