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, string documentName)
Parameters
Name | Type | Description |
---|---|---|
code | string | JavaScript code |
documentName | string | Document name |
Return Value
Type | Description |
---|---|
I |
A pre-compiled script that can be executed by different instances of JavaScript engine |