ScriptHelper.RenderPartialAsync

Renders a partial file into the template

public Task<string> RenderPartialAsync(string scriptPath, object model)

Parameters

scriptPath
Path to script file to execute

model
optional model to pass in