API Reference
Blaze-ng is organized as a collection of focused packages. Each package has a single responsibility and can be used independently.
Core Packages
| Package | Description |
|---|---|
| @blaze-ng/core | Core rendering engine — View, Template, render, toHTML |
| @blaze-ng/htmljs | HTML object model — structured HTML representation |
| @blaze-ng/spacebars | Spacebars template runtime — mustache, include, helpers |
| @blaze-ng/spacebars-compiler | Spacebars compiler — template string to render function |
| @blaze-ng/templating-runtime | Template registration, body content, HMR support |
| @blaze-ng/observe-sequence | Reactive list observation and diffing |
Build Tools
| Package | Description |
|---|---|
| @blaze-ng/templating-tools | HTML scanning and template compilation utilities |
| @blaze-ng/templating-compiler | High-level template compilation API |
| @blaze-ng/html-tools | HTML tokenizer and parser |
| @blaze-ng/blaze-tools | Scanner and code generation utilities |
Integration
| Package | Description |
|---|---|
| @blaze-ng/meteor | Meteor Tracker reactive system adapter |
| @blaze-ng/wasm | Optional WASM accelerators for diffing and tokenization |
Quick Links
- Blaze.render() — Render a template into a DOM element
- Blaze.toHTML() — Render to HTML string (SSR)
- Template.helpers() — Define template helpers
- Template.events() — Define event handlers
- Template.onCreated() — Lifecycle callback
- SpacebarsCompiler.compile() — Compile template string
- HTML.DIV() — Create HTML elements