illimi-core
v1.0.1
Published
Core library for illimi framework - Virtual DOM and Reactivity System
Readme
illimi-core
Core compiler/runtime primitives for Illimi templates.
Install
npm install illimi-coreWhat It Provides
- Template parsing:
parseTemplate - AST -> IR transform:
transformAST - VDOM creation:
createVDOM - Layout helpers:
resolveLayout,mergeSlots
Template Notes
- Primary directives use
x-*(for examplex-if,x-for,x-on:click). f-*is still supported for compatibility.- Supported template file extensions:
.htmland.ilm.
Example
import { parseTemplate, transformAST, createVDOM } from 'illimi-core';
const ast = parseTemplate('<div><p>{{ title }}</p></div>');
const ir = transformAST(ast);
const vnode = createVDOM(ir, { title: 'Hello Illimi' });License
MIT
