From c007c7f43c73533bf1983efa565c4a61dfa73be0 Mon Sep 17 00:00:00 2001 From: Ayo Date: Sat, 21 Oct 2023 14:47:15 +0200 Subject: [PATCH] feat(templates): update footer example --- templates/basic/routes/[...index].ts | 2 +- templates/basic/src/components/my-footer.html | 5 ++++- templates/basic/src/components/my-hello-world.js | 1 - 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/templates/basic/routes/[...index].ts b/templates/basic/routes/[...index].ts index 31d4010..6d824a0 100644 --- a/templates/basic/routes/[...index].ts +++ b/templates/basic/routes/[...index].ts @@ -4,7 +4,7 @@ import { ELEMENT_NODE, parse, render, renderSync, walkSync } from "ultrahtml"; import { parseScript } from "esprima"; -import config from "../../../app/mcfly.config"; +import config from "../mcfly.config"; const { components: componentType } = config(); diff --git a/templates/basic/src/components/my-footer.html b/templates/basic/src/components/my-footer.html index 24d7f28..f739822 100644 --- a/templates/basic/src/components/my-footer.html +++ b/templates/basic/src/components/my-footer.html @@ -1,6 +1,9 @@ diff --git a/templates/basic/src/components/my-hello-world.js b/templates/basic/src/components/my-hello-world.js index 6a0c1eb..2379cf4 100644 --- a/templates/basic/src/components/my-hello-world.js +++ b/templates/basic/src/components/my-hello-world.js @@ -10,7 +10,6 @@ class HelloWorld extends WebComponent { this.onclick = () => { this.setAttribute("data-name", `Clicked ${++count}x`); }; - this.setAttribute("title", "Click me please"); } get template() {