Checks if the string is a "script" string (it starts with
=>
)
and trims the string if it is.
- Namespace
- Statiq
.Common - Containing Type
- IScriptHelper
Syntax
bool TryGetScriptString(string str, out string script)
Parameters
Name | Type | Description |
---|---|---|
str | string | The candidate string. |
script | string | The trimmed script. |
Return Value
Type | Description |
---|---|
bool | true if the candidate string is a script string, false otherwise. |