CustomizeScript(Func<string, IExecutionContext, string>) Method
This allows you to customize the JavaScript file that this module creates.
Namespace
Statiq.Lunr
Containing Type
GenerateLunrIndex

Syntax

public GenerateLunrIndex CustomizeScript(Func<string, IExecutionContext, string> customizeScript)

Parameters

Name Type Description
customizeScript Func<string, 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. If you return null then no script will be output (only the index file will be output).

Return Value

Type Description
GenerateLunrIndex The current module instance.