0.3.9 • Published 6 years ago
annotated v0.3.9
annotated
An experimental JavaScript superset language supporting annotations and macros.
// Import a macro definition
@macro import './custom-element-macros';
// Apply a macro to a class
@customElement('hello-world')
class HelloWorld extends HTMLElement {
connectedCallback() {
this.textContent = 'hello world';
}
}