template-content.js 496 B

1234567
  1. import{noChange as t}from"../lit-html.js";import{directive as r,Directive as e,PartType as n}from"../directive.js";
  2. /**
  3. * @license
  4. * Copyright 2020 Google LLC
  5. * SPDX-License-Identifier: BSD-3-Clause
  6. */const o=r(class extends e{constructor(t){if(super(t),t.type!==n.CHILD)throw Error("templateContent can only be used in child bindings")}render(r){return this.vt===r?t:(this.vt=r,document.importNode(r.content,!0))}});export{o as templateContent};
  7. //# sourceMappingURL=template-content.js.map