Documentation
    Preparing search index...

    Interface PartialTagContextLambda

    Implement this function to asynchronously return a ReadableStream that contains a Mustache template and its associated context to replace a Partial tag.

    const lambda: PartialTagContextLambda = (tag) => {
    context: { title: "On Tyranny" },
    template: () => bookSummary.getReadableStream()
    }
    • Parameters

      • tag: Tag

        The partial tag that is being processed. PartialTagContextLambda returns the context and the template for the partial tag that are needed to render the tag replacement.

      Returns Promise<PartialTagContextLambdaResult>

      The context and template to render the partial that the tag parameter references.