Simple-to-use, high-performance JavaScript templating engine within the Kendo UI toolkit
The Kendo UI Templates provide a simple-to-use, high-performance JavaScript templating engine within the Kendo UI toolkit. Templates offer a way to create HTML chunks that can be automatically merged with JavaScript data. They are a substitute for traditional HTML string building in JavaScript.
Template Syntax
Kendo UI Templates use a simple templating syntax called hash templates. With this syntax, the # (hash) sign is used to mark areas in a template that should be replaced by data when the template is executed. The # character is also used to signify the beginning and end of custom JavaScript code inside the template.
There are three ways to use the hash syntax:
1.Render values as HTML: #= #.
2.Use HTML encoding to display values: #: #.
3.Execute arbitrary JavaScript code: # if (true) { # ... non-script content here ... # } #.