Saxonberg Server API
    Preparing search index...

    Interface CmsReadResult

    Result of read — the editable body of one leaf.

    interface CmsReadResult {
        backend: CmsBackend;
        body: string;
        kind: CmsNodeKind;
        language: string;
        path: string;
        templateMeta?: { class: string; hydratorClass?: string };
    }
    Index

    Properties

    backend: CmsBackend
    body: string

    Content: pretty-printed JSON of template.data. Source: raw file bytes. Document: the stored data (a script kind's source text, else pretty-printed JSON).

    language: string

    Editor language hint: 'json' | 'typescript' | 'yaml' | 'plaintext'.

    path: string
    templateMeta?: { class: string; hydratorClass?: string }

    Content-only: the template's backing class + hydrator, echoed back so write can round-trip them unchanged. Absent for source.