@github/template-parts
Version:
An implementation of the TemplateInstance proposal (https://github.com/w3c/webcomponents/blob/159b1600bab02fe9cd794825440a98537d53b389/proposals/Template-Instantiation.md)
13 lines • 499 B
JavaScript
import { NodeTemplatePart } from './node-template-part.js';
export class InnerTemplatePart extends NodeTemplatePart {
constructor(template) {
var _a;
super(template, (_a = template.getAttribute('expression')) !== null && _a !== void 0 ? _a : '');
this.template = template;
}
get directive() {
var _a;
return (_a = this.template.getAttribute('directive')) !== null && _a !== void 0 ? _a : '';
}
}
//# sourceMappingURL=inner-template-part.js.map