feat: variable title demo

This commit is contained in:
Ayo 2023-10-13 09:27:09 +02:00
parent 4756f7aaab
commit ebf3c66bce

View file

@ -3,12 +3,14 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Hello Nitro</title>
<title>Hello {{name}} :)</title>
<script server:setup>
const name = "AYOs";
let greeting = "hello";
var count = sum(1, 247);
greeting = "nope";
function sum(x, y) {
return x + y;
}
@ -16,11 +18,11 @@
</head>
<body>
<a href="/about">{{ count }}</a>
{{greeting}} hey
<div>
<hello-world name="{{name }}"></hello-world>
</div>
<p>some text: {{greeting}}</p>
{{greeting}} hey<br />
<clickable-text></clickable-text>
<script>
const helloWorld = document.querySelector("hello-world");