perk-cli 0.1.0

The `perk` command: create apps, add pages, check them, and run a development server that reloads on save
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<script>
  let count = $state(0);
</script>

<title>Counter · {{name}}</title>

<h1>Counter</h1>
<p>
  <button id="dec" disabled={count <= 0} onclick={() => count = count - 1}>−</button>
  <output id="count">{count}</output>
  <button id="inc" onclick={() => count = count + 1}>+</button>
</p>
{#if count >= 5}<p>That's {count} clicks.</p>{/if}

<style>
  output { display: inline-block; min-width: 2ch; text-align: center; font-variant-numeric: tabular-nums; }
</style>