Skip to content

Commit d35431a

Browse files
authored
Merge pull request #689 from konstantinkoetzner/patch-1
Thank you!
2 parents ea9a653 + 7ba23d2 commit d35431a

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

‎www/index.njk‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -165,13 +165,14 @@ title: ///_hyperscript
165165
<code>${}</code> interpolation, and the runtime handles re-rendering via morphing.</p>
166166
<p>Components should be easy. Hyperscript makes them easy.</p>
167167
{% highlight "html" %}
168-
<template component="click-counter"
169-
_="init set ^count to 0">
168+
<script type="text/hyperscript-template" component="click-counter" _="set ^count to 0">
169+
170170
<button _="on click increment ^count">+</button>
171-
<span>Clicks: ${^count}</span>
172-
</template>
171+
<span class="label">Clicks: ${^count}</span>
172+
</script>
173173

174174
<click-counter></click-counter>
175+
<br>
175176
<click-counter></click-counter>
176177
{% endhighlight %}
177178
</div>

0 commit comments

Comments
 (0)