feat: update server setup examples about & index.html

This commit is contained in:
Ayo 2023-10-10 23:42:11 +02:00
parent f420c9fe2b
commit 0646b44712
3 changed files with 7 additions and 3 deletions

View file

@ -96,7 +96,6 @@ function doSetUp(html: string) {
value = value.replace(/\s/g, "");
html = html.replace(key, setupMap[value]);
}
console.log("---------");
return html;
}

View file

@ -6,10 +6,15 @@
<title>top about</title>
<script server:setup>
let greeting = "hello";
const homeLabel = getHomeLabel();
function getHomeLabel() {
return "Home" + "!!! " + new Date().toLocaleDateString();
}
</script>
</head>
<body>
<a href="/">Home</a>
<a href="/">{{homeLabel}}</a>
<h1>{{greeting}}!!! Top Level About</h1>
</body>
</html>

View file

@ -15,7 +15,7 @@
</script>
</head>
<body>
<a href="/about">{{ count }}</a>
<a href="/about">{{ count + 123 }}</a>
{{greeting}} hey
<div>
<hello-world name="{{name }}"></hello-world>