--- url: "https://web.dev/articles/webcomponents-template" titulek: "HTML's New Template Tag | Articles | web.dev" h1: "HTML's New Template Tag Stay organized with collections Save and categorize content based on your preferences." popis: "" jazyk: "en" kanonicka: "https://web.dev/articles/webcomponents-template" drobecky: ["Articles", "HTML's New Template Tag"] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-14 00:54:50" znaku: 10774 slov: 1518 kodovani: "iso-8859-2" sha256: "56fb8097eafd521548e0deaaed5a236bab127eeaab7382a6c6e8611ad0ab1e91" --- HTML's New Template Tag Stay organized with collections Save and categorize content based on your preferences. Standardizing client-side templating Eric Bidelman Introduction The concept of templating is not new to web development. In fact, server-side [templating languages/engines](http://en.wikipedia.org/wiki/Template_engine_(web)) like Django (Python), ERB/Haml (Ruby), and Smarty (PHP) have been around for a long time. In the last couple of years however, we've seen an explosion of MVC frameworks spring up. All of them are slightly different, yet most share a common mechanic for rendering their presentational layer (aka da view): templates. Let's face it. Templates are fantastic. Go ahead, ask around. Even its [definition](http://www.thefreedictionary.com/template) makes you feel warm and cozy: "…does not have to be recreated each time…" Don't know about you, but I love avoiding extra work. Why then does the web platform lack native support for something developers clearly care about? The [WhatWG HTML Templates specification](https://html.spec.whatwg.org/multipage/scripting.html#the-template-element) is the answer. It defines a new `