CopyMeta Class

Summary

Copies the specified meta key to a new meta key, with an optional format argument.
Assembly
Wyam.Core.dll
Namespace
Wyam.Core.Modules.Metadata
Interfaces
Base Types
  • Object
graph BT Type-->Base0["Object"] Type-.->Interface0["IModule"] click Interface0 "/api/Wyam.Common.Modules/IModule" Type["CopyMeta"] class Type type-node

Syntax

public class CopyMeta : IModule

Constructors

Name Summary
CopyMeta(string, string, string) The specified object in fromKey is copied to toKey. If a format is provided, the fromKey value is processed through string.Format before being copied (if the existing value is a DateTime, the format is passed as the argument to ToString).

Methods

Name Value Summary
Execute(IReadOnlyList<IDocument>, IExecutionContext) IEnumerable<IDocument>
This should not be called directly, instead call IExecutionContext.Execute() if you need to execute a module from within another module.
WithFormat(Func<string, string>) CopyMeta
Specifies the format to use when copying the value.
WithFormat(string) CopyMeta
Specifies the format to use when copying the value.
GitHub