Creates a config value by getting the metadata value of a specified key from a document.
- Namespace
- Statiq
.Common - Containing Type
- Config
Syntax
public static Config<TValue> FromDocument<TValue>(string key)
Type Parameters
Name | Description |
---|---|
TValue | The type of config value. |
Parameters
Name | Type | Description |
---|---|---|
key | string | The metadata key to get the value from. |
Return Value
Type | Description |
---|---|
Config |
A config object. |