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