Adds a shortcode by type, inferring the name from the type name.
- Namespace
- Statiq
.Common - Containing Type
- I
Shortcode Collection Extensions
Syntax
public static void Add<TShortcode>(this IShortcodeCollection shortcodes)
where TShortcode : IShortcode
Type Parameters
| Name | Description |
|---|---|
| TShortcode | The type of the shortcode to add. |
Parameters
| Name | Type | Description |
|---|---|---|
| shortcodes | IShortcodeCollection | The shortcodes. |