IJavaScriptEngine.

Precompile(string) Method

Summary

Creates a pre-compiled script from JavaScript code.
Assembly
Wyam.Common.dll
Namespace
Wyam.Common.JavaScript
Containing Type
IJavaScriptEngine

Syntax

IPrecompiledJavaScript Precompile(string code)

Parameters

Name Type Description
code string JavaScript code

Return Value

Type Description
IPrecompiledJavaScript A pre-compiled script that can be executed by different instances of JavaScript engine
GitHub