Summary
Adds a shortcode that determines the result content
using the declared arguments and content and the current document and execution context.
Syntax
void Add(string name, Func<KeyValuePair<string, string>[], string, IDocument, IExecutionContext, IShortcodeResult> func)
Parameters
Name |
Type |
Description |
name |
string |
The name of the shortcode. |
func |
Func<KeyValuePair<string, string>[], string, IDocument, IExecutionContext, IShortcodeResult> |
A function that has the declared arguments and content and the current document and execution context as inputs
and a Wyam.Common.Shortcodes.IShortcodeResult as an output which allows the shortcode to add metadata to the document.
|
Return Value