Summary
Adds a shortcode that determines the result content using the declared arguments.
- Assembly
- Wyam
.Common .dll - Namespace
- Wyam
.Common .Shortcodes - Containing Type
- IShortcodeCollection
Syntax
void Add(string name, Func<KeyValuePair<string, string>[], string> func)
Parameters
Name | Type | Description |
---|---|---|
name | string | The name of the shortcode. |
func | Func |
A function that has the declared arguments as an input and the result content as an output. |
Return Value
Type | Description |
---|---|
void |