Philosophy & Motivation
CLI: npm i 'https://gitpkg.now.sh/KevinBLT/hec/packages/@hec.js/cli?main'
UI: npm i 'https://gitpkg.now.sh/KevinBLT/hec/packages/@hec.js/ui?main'
API: npm i 'https://gitpkg.now.sh/KevinBLT/hec/packages/@hec.js/api?main'
ENV: npm i 'https://gitpkg.now.sh/KevinBLT/hec/packages/@hec.js/env?main'
HTML describes a template by using placeholder (https://github.com/WICG/webcomponents/blob/gh-pages/proposals/DOM-Parts-Declarative-Template.md), which will be used to insert the properties given in the template context.
<div id="div">Hello !</div>
// in *.js
<script type="module">
import { templateByNode } from "url/to/hec.js";
templateByNode(div, { name: 'Joey' });
</script>
Component https://kevinblt.github.io/hec/packages/@hec.js/ui/example/component
Effect https://kevinblt.github.io/hec/packages/@hec.js/ui/example/effect
Events https://kevinblt.github.io/hec/packages/@hec.js/ui/example/events
Form https://kevinblt.github.io/hec/packages/@hec.js/ui/example/form
Inline https://kevinblt.github.io/hec/packages/@hec.js/ui/example/inline
List https://kevinblt.github.io/hec/packages/@hec.js/ui/example/list
Memo https://kevinblt.github.io/hec/packages/@hec.js/ui/example/memo
Plugins https://kevinblt.github.io/hec/packages/@hec.js/ui/example/plugins
Resource https://kevinblt.github.io/hec/packages/@hec.js/ui/example/resource
Signal https://kevinblt.github.io/hec/packages/@hec.js/ui/example/signal