Changes the destination extension of input documents to the specified extension.
If
DestinationPath
, DestinationFileName
, or DestinationExtension
metadata values are set, those will take precedence.
- Namespace
- Statiq
.Core - Containing Type
- SetDestination
Syntax
public SetDestination(string pathOrExtension)
Parameters
Name | Type | Description |
---|---|---|
pathOrExtension | string |
The path or extension to set the destination to.
If the value starts with a "." then it will be treated as an extension and the existing destination path will be changed (if there is one).
If the value does not start with a "." then it will be treated as a path and the destination will be set to the value.
Use SetDestination(Config<NormalizedPath>, bool) for more control.
|