© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2021
J. KrauseDeveloping Web Components with TypeScripthttps://doi.org/10.1007/978-1-4842-6840-7_5

5. Templates

Jörg Krause1  
(1)
Berlin, Berlin, Germany
 

The concept of templates is a fundamental part of almost all web development environments. Examples for server-side template languages are Razor (.NET), Haml (Ruby), Django (Python), Pug (NodeJS), and Smarty (PHP). Examples for client-side template languages can be found in Angular and many more frameworks.

Templates help create dynamic parts, reduce boilerplate code, and avoid repeating markup. The rise of so many template variants in web frameworks, client- and server-side, was forced by a missing alternative ...

Get Developing Web Components with TypeScript: Native Web Development Using Thin Libraries 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.