Skip to content

KEML

KEML — Actions over abstractions.
Enhance HTML with expressive, declarative attributes that connect your frontend directly to your server logic.

min+gzip License npm Docs VS Code Extension


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
<button
  on:click="submitDiv"
>
  Click me!
</button>

<!-- I promise, I am a form element ;) -->
<div
  on="submitDiv"
  name="weirdDiv"
  value="hello"
  result="serverSaysHi"
></div>

<!-- I will be overwritten -->
<p
  render="serverSaysHi"
  position="replaceWith"
></p>

<!-- yep, nothing special here -->
<title render="serverSaysHi"></title>

Curious? Confused? - Great!
There is plenty of other pages to read 😀