diff --git a/routes/[...index].ts b/routes/[...index].ts index a3ec3b8..fe7dc74 100644 --- a/routes/[...index].ts +++ b/routes/[...index].ts @@ -20,7 +20,7 @@ export default eventHandler(async (event) => { } } - if (!!componentType) { + if (!!componentType && !!html) { html = await insertRegistry(html.toString(), componentType); } diff --git a/src/pages/about.html b/src/pages/demo/about.html similarity index 100% rename from src/pages/about.html rename to src/pages/demo/about.html diff --git a/src/pages/about/index.html b/src/pages/demo/about/index.html similarity index 100% rename from src/pages/about/index.html rename to src/pages/demo/about/index.html diff --git a/src/pages/about/me.html b/src/pages/demo/about/me.html similarity index 100% rename from src/pages/about/me.html rename to src/pages/demo/about/me.html diff --git a/src/pages/demo/index.html b/src/pages/demo/index.html new file mode 100644 index 0000000..cbbca10 --- /dev/null +++ b/src/pages/demo/index.html @@ -0,0 +1,36 @@ + + +
+ + +some text: {{greeting}}
+ {{greeting}} heysome text: {{greeting}}
- {{greeting}} hey