Add(string, Func<IShortcode>) Method
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<IShortcode> A factory that returns an IShortcode.