Adds a shortcode using a factory.
- Namespace
- Statiq
.Common - Containing Type
- IShortcodeCollection
Syntax
void Add(string name, Func<IShortcode> shortcodeFactory)
Parameters
Name | Type | Description |
---|---|---|
name | string | The name of the shortcode. |
shortcodeFactory | Func |
A factory that returns an IShortcode . |