TestShortcodeCollection.

Add(string, Func<string, IExecutionContext, string>) Method

Summary

Adds a shortcode that determines the result content using the declared content and the current execution context.

Syntax

public void Add(string name, Func<string, IExecutionContext, string> func)

Parameters

Name Type Description
name string The name of the shortcode.
func Func<string, IExecutionContext, string> A function that has the declared content and the current execution context as inputs and the result content as an output.

Return Value

Type Description
void
GitHub