Documentation
    Preparing search index...

    Renders a Mustache template by extending TransformStream.

    The incoming ReadableStream provides the contents of a Mustache template. The stream is processed by StacheStreamTransform which emits the rendered Mustache template. The information needed to render the template is made available through the constructor's options and the ContextProvider.

    Hierarchy

    • TransformStream<string, string>
      • StacheTransformStream
    Index

    Constructors

    Properties

    Constructors

    • Parameters

      • Optionaloptions: { contextProvider?: ContextProvider }

        Options needed to render a Mustache template stream.

        • OptionalcontextProvider?: ContextProvider

          The ContextProvider is used during the render process to access the context for tags.

      Returns StacheTransformStream

    Properties

    readable: ReadableStream<string>
    writable: WritableStream<string>