Understanding Templates

If you need to display the same fragment of HTML more than one time in a page then you should create a template. A template is a fragment of HTML that can include declarative data binding expressions. There are two ways to create a template: imperatively and declaratively.

Get Windows® 8.1 Apps with HTML5 and JavaScript Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.