Executes code from embedded JavaScript resource.
- Namespace
- Statiq
.Common - Containing Type
- IJavaScriptEngine
Syntax
void ExecuteResource(string resourceName, Type type)
Parameters
| Name | Type | Description |
|---|---|---|
| resourceName | string | The case-sensitive resource name without the namespace of the specified type. |
| type | Type | The type, that determines the assembly and whose namespace is used to scope the resource name. |