summaryrefslogtreecommitdiff
path: root/examples/framework-lit/src/pages/index.astro
diff options
context:
space:
mode:
authorGravatar Matthew Phillips <matthew@matthewphillips.info> 2021-07-13 08:27:40 -0400
committerGravatar GitHub <noreply@github.com> 2021-07-13 08:27:40 -0400
commit48851c9d256b78c8e99e72d91ed98209a6a99e93 (patch)
tree19b4f4b293d4b569851a2d2531187415e13137d1 /examples/framework-lit/src/pages/index.astro
parent1b13f5c158b5fbe157406308205c0939b415e1d7 (diff)
downloadastro-48851c9d256b78c8e99e72d91ed98209a6a99e93.tar.gz
astro-48851c9d256b78c8e99e72d91ed98209a6a99e93.tar.zst
astro-48851c9d256b78c8e99e72d91ed98209a6a99e93.zip
Adds support for a Lit renderer (#665)
* Adds support for a Lit renderer This adds `@astrojs/renderer-lit`. An experimental Lit renderer. * Removed cached submodule, mistake * Prevent globals clobbering * Add docs on globals
Diffstat (limited to 'examples/framework-lit/src/pages/index.astro')
-rw-r--r--examples/framework-lit/src/pages/index.astro21
1 files changed, 21 insertions, 0 deletions
diff --git a/examples/framework-lit/src/pages/index.astro b/examples/framework-lit/src/pages/index.astro
new file mode 100644
index 000000000..3fc3ef029
--- /dev/null
+++ b/examples/framework-lit/src/pages/index.astro
@@ -0,0 +1,21 @@
+---
+import Lorem from '../components/Lorem.astro';
+import '../components/Test.js';
+import '../components/Counter.js';
+---
+
+<!doctype html>
+<html lang="en">
+<head>
+ <title>Demo</title>
+</head>
+<body>
+ <h1>Test app</h1>
+
+ <my-counter client:load />
+
+ <Lorem />
+
+ <calc-add num={33} />
+</body>
+</html>