SearchIndex.

WithScript(Func<StringBuilder, IExecutionContext, string>) Method

Summary

This allows you to customize the Lunr.js JavaScript that this module creates.
Assembly
Wyam.SearchIndex.dll
Namespace
Wyam.SearchIndex
Containing Type
SearchIndex

Syntax

public SearchIndex WithScript(Func<StringBuilder, IExecutionContext, string> script)

Parameters

Name Type Description
script Func<StringBuilder, IExecutionContext, string> A script transformation function. The System.Text.StringBuilder contains the generated script content. You can manipulate as appropriate and then return the final script as a string.

Return Value

Type Description
SearchIndex The current module instance.
GitHub