Add(IShortcodeCollection, string, Func<KeyValuePair<string, string>[], string, IDocument, IExecutionContext, ShortcodeResult>) Method
Adds a shortcode that determines the result content using the declared arguments and content and the current document and execution context.
Namespace
Statiq.Common
Containing Type
IShortcodeCollectionExtensions

Syntax

public static void Add(this IShortcodeCollection shortcodes, string name, Func<KeyValuePair<string, string>[], string, IDocument, IExecutionContext, ShortcodeResult> shortcode)

Parameters

Name Type Description
shortcodes IShortcodeCollection The shortcodes.
name string The name of the shortcode.
shortcode Func<KeyValuePair<string, string>[], string, IDocument, IExecutionContext, ShortcodeResult> A function that has the declared arguments and content and the current document and execution context as inputs and a ShortcodeResult as an output.