Archived
f8e32e7719
elc-ui is a Node.js compiler CLI that reads .el component files and emits either a browser ES2022 module (web target) or a Node.js CJS render script (server target). The server target embeds the component source at compile time and exports renderToString(componentName, props) -> HTML string, which any El web server can require() and call. CLI mode (node render.js ComponentName propsJson) lets the web server invoke it via exec() as a subprocess. The web target emits class-per-component JS matching the hand-compiled format, so compiler output and hand-written components are interchangeable.