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
- I
Shortcode Collection Extensions
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 |
A function that has the declared arguments and content and the current document and execution context as inputs and a ShortcodeResult as an output.
|