Validates that the arguments contain a single value and returns it.
This will collapse keys and values into a single argument value so that "=" doesn't have to be
escaped with quotes.
- Namespace
- Statiq
.Common - Containing Type
- Shortcode
Args Extensions
Syntax
public static string SingleValue(this KeyValuePair<string, string>[] args)
Parameters
Name | Type | Description |
---|---|---|
args | KeyValuePair |
The original shortcode arguments. |
Return Value
Type | Description |
---|---|
string | The single argument value. |