use server variable as attribute value

This commit is contained in:
Ayo 2023-10-09 15:30:52 +02:00
parent bd751011f8
commit 62e079efef

View file

@ -12,11 +12,10 @@
<body> <body>
<a href="/about">About</a> <a href="/about">About</a>
<div> <div>
<hello-world name="Ayo"></hello-world> <hello-world name="{{name}}"></hello-world>
</div> </div>
<span>some text</span> <span>some text</span>
<clickable-text></clickable-text> <clickable-text></clickable-text>
<span>Name: {{ name }}</span>
<script> <script>
const helloWorld = document.querySelector("hello-world"); const helloWorld = document.querySelector("hello-world");
setTimeout(() => { setTimeout(() => {