0.1.0 • Published 4 years ago
fuse-cmd v0.1.0
Fuse
Fuse is a lightweight Javascript framework for building UI
- Hierarchy state management
- Components
- In-line scripting, the fuse way
Details
Fuse utilizes it's own in-line scripting that runs in the context of corresponding DOM elements:
<div id="container">
{
this.find("#foo").innerText += "Polo!";
}
<span id="foo">Marco</span>
</div>
or
<div id="container">
<span id="foo">
{
this.innerText += "Polo!";
}
Marco
</span>
</div>
Components
<template>
<div class="timer">
<span>
{
var count = 0;
setInterval(() => {
count++;
this.innerText = count;
}, 1000)
}
0
</span>
</div>
</template>
0.1.0
4 years ago