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.