Template
methodsCompiles a template to a function that builds HTML. Useful when a template will be used several times. Templates offer way of creating HTML chunks. Options such as HTML encoding and compilation for optimal performance are available.
Parameters:templateString
Returns:Function
The template that will be compiled.
the compiled template as a JavaScript function. When called this function will return the generated HTML string. The function accepts a single argument—the data object that the template renders. The argument is named data by default and can be renamed through the options.paramName setting.