Executes code from JavaScript file.
- Namespace
- Statiq
.Common - Containing Type
- IJavaScriptEngine
Syntax
void ExecuteFile(string path, Encoding encoding = null)
Parameters
Name | Type | Description |
---|---|---|
path | string | Path to the JavaScript file. |
encoding | Encoding | Text encoding. |