Summary
Creates a pre-compiled script from embedded JavaScript resource.
- Assembly
- Wyam
.Common .dll - Namespace
- Wyam
.Common .JavaScript - Containing Type
- IJavaScriptEngine
Syntax
IPrecompiledJavaScript PrecompileResource(string resourceName, Assembly assembly)
Parameters
Name | Type | Description |
---|---|---|
resourceName | string | The case-sensitive resource name |
assembly | Assembly | The assembly, which contains the embedded resource |
Return Value
Type | Description |
---|---|
I |
A pre-compiled script that can be executed by different instances of JavaScript engine |