Skip to content

Instantly share code, notes, and snippets.

View kaermorchen's full-sized avatar

Stanislav Romanov kaermorchen

View GitHub Profile
@lifeart
lifeart / Lazy.ts
Last active July 24, 2022 11:39
Lazy glimmer 2 components
import { createTemplate, setComponentTemplate, templateOnlyComponent } from '@glimmer/core';
export default setComponentTemplate(
createTemplate(`<h1 ...attributes>AMA LAZY [{{@name}}]</h1>`),
templateOnlyComponent()
);
@lifeart
lifeart / index.html
Last active May 24, 2021 18:56
GlimmerLite web components example
<!doctype html>
<html>
<head>
<title>Glimmer Demo</title>
</head>
<body>
<script src="./app.bundle.js"></script>
<example-app />
</body>
</html>