variable / @typed/template/Html

StaticRendering

A boolean service that indicates whether the current rendering context is static.

If true, the HTML renderer will optimize for static output, potentially skipping dynamic placeholder generation or other interactive features not needed for static HTML.

Package version
1.0.0-beta.13
Category
HTML rendering policy
Since
1.0.0

Import

import { StaticRendering } from "@typed/template/Html";

Signatures

export declare const StaticRendering: Context.Reference<boolean>;

Why

Static and hydratable SSR share one renderer while making marker generation an explicit service choice.

Ownership and lifetime

The reference has a default of false and owns no resource. A provided value is scoped by the surrounding Effect context.

Examples

import { StaticRendering } from "@typed/template/Html"
import { Effect } from "effect"

const isStatic = Effect.runSync(StaticRendering)

Other public imports

These import paths expose the same declaration. Each page retains its own public name and signature.

Source