diff --git a/@mizu/internal/engine/renderer.ts b/@mizu/internal/engine/renderer.ts index 059b2a2..983a9fc 100644 --- a/@mizu/internal/engine/renderer.ts +++ b/@mizu/internal/engine/renderer.ts @@ -1126,7 +1126,8 @@ export class Renderer { */ warn(message: string, target?: Nullable): void { if (this.#warn) { - return this.#warn(message, target) + this.#warn(message, target) + return } if (target && ((this.isHtmlElement(target)) || (this.isComment(target)))) { return this.setAttribute(target, "*warn", message) diff --git a/@mizu/mustache/README.md b/@mizu/mustache/README.md index 8f173f2..971d43a 100644 --- a/@mizu/mustache/README.md +++ b/@mizu/mustache/README.md @@ -1,8 +1,8 @@ # `*mustache` -| Version | Phase | -| ----------------------------------------- | -------------- | -| ![](https://jsr.io/badges/@mizu/mustache) | 41 — `CONTENT` | +| Version | Phase | Multiple | +| ----------------------------------------- | ---------------------------- | -------- | +| ![](https://jsr.io/badges/@mizu/mustache) | 42 — `CONTENT_INTERPOLATION` | Yes | Enable content interpolation within « mustaches » ( `{{` and `}}`) from [`Text`](https://developer.mozilla.org/docs/Web/API/Text) child nodes. diff --git a/www/html/mizu/tbd.html b/www/html/mizu/tbd.html index 711269f..a1ed121 100644 --- a/www/html/mizu/tbd.html +++ b/www/html/mizu/tbd.html @@ -2,8 +2,7 @@

To Be Defined

- mizu.js is currently in development and follows ZeroVer versioning. - This means breaking changes may occur in minor versions, even for previously defined features. + mizu.js is currently in development and follows ZeroVer versioning. This means breaking changes may occur in minor versions, even for previously defined features.

diff --git a/www/static/rendering.svg b/www/static/rendering.svg index 1f59e4e..6faede7 100644 --- a/www/static/rendering.svg +++ b/www/static/rendering.svg @@ -61,4 +61,4 @@ #graph .edgeLabel p code { background: var(--bg-default); } -

Element rendering

Node is an Element OR Node is in cache

Resolve source node IF in cache

Directives setup

Returned value is false

Call directive.setup()

Update state IF present in returned value

Set forced eligibility IF present in returned value

Directives execution

Node has a matching attribute OR eligibility has been forced to true during setup

Node has NO matching attributes OR eligibility has been forced to false during setup

Returned value has final set to true

Call directive.execute()

Notify any misuses IF applicable (e.g. conflicts, duplicates, etc.)

Replace current node reference IF present in returned value

Update state IF present in returned value

Update context IF present in returned value

Recursively call rendering on node children

Directives cleanup

Call directive.cleanup()

\ No newline at end of file +
Element rendering

Node is an Element OR Node is in cache

Resolve source node IF in cache

Directives setup

Returned value is false

Call directive.setup()

Update state IF present in returned value

Set forced eligibility IF present in returned value

Directives execution

Node has a matching attribute OR eligibility has been forced to true during setup

Node has NO matching attributes OR eligibility has been forced to false during setup

Returned value has final set to true

Call directive.execute()

Notify any misuses IF applicable (e.g. conflicts, duplicates, etc.)

Replace current node reference IF present in returned value

Update state IF present in returned value

Update context IF present in returned value

Recursively call rendering on node children

Directives cleanup

Call directive.cleanup()

\ No newline at end of file diff --git a/www/tools.ts b/www/tools.ts index bf686a4..f0b37be 100644 --- a/www/tools.ts +++ b/www/tools.ts @@ -62,7 +62,7 @@ export function js(exported: string, options = {} as Pick response.text()), {warn:() => null}) + return Mizu.render(await fetch(import.meta.resolve("./html/index.html")).then((response) => response.text()), { warn: () => null }) } /** Generate documentation for an exported class. */