Tutorial: template

template

<template> HTML tag

How to use

In case you would like to use <template> tag, add this to Settings -> Embedded Code -> Before </head>.


HTMLTemplateElement.prototype.appendChild = function (child) {
  return this.content.appendChild(child);
};

HTMLTemplateElement.prototype.removeChild = function (child) {
  return this.content.removeChild(child);
};

Object.defineProperty(HTMLTemplateElement.prototype, "firstChild", {
  get() {
    return this.content.firstChild;
  }
});