@anzaui/engine - v0.6.0
    Preparing search index...

    Type Alias Chunk

    Chunk:
        | { type: "static"; value: string }
        | { name: string; type: "slot" }
        | { name: string; type: "raw" }

    One piece of a parsed template.

    • { type: 'static', value }: HTML text, written as is.
    • { type: 'slot', name }: a {{name}} placeholder (name trimmed, so {{ user_name }} is user_name); HTML-escaped when the engine runs with escape: true.
    • { type: 'raw', name }: a {{{name}}} placeholder, always inserted as is.

    Type Declaration

    • { type: "static"; value: string }
      • type: "static"

        Static text.

      • value: string

        The HTML text, written as is.

    • { name: string; type: "slot" }

      {{name}}: HTML-escaped when the engine runs with escape: true.

      • name: string

        The trimmed placeholder name.

      • type: "slot"

        A {{name}} placeholder.

    • { name: string; type: "raw" }

      {{{name}}}: always inserted as-is.

      • name: string

        The trimmed placeholder name.

      • type: "raw"

        A {{{name}}} placeholder.