feat: variable title demo
This commit is contained in:
parent
4756f7aaab
commit
ebf3c66bce
1 changed files with 4 additions and 2 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue