IExecutionContext.

GetShortcodeResult(string, IEnumerable<KeyValuePair<string, Object>>) Method

Summary

A factory method for use from inside an Wyam.Common.Shortcodes.IShortcode to create an Wyam.Common.Shortcodes.IShortcodeResult.
Assembly
Wyam.Common.dll
Namespace
Wyam.Common.Execution
Containing Type
IExecutionContext

Syntax

IShortcodeResult GetShortcodeResult(string content, IEnumerable<KeyValuePair<string, Object>> metadata = null)

Parameters

Name Type Description
content string The content of the shortcode. If you don't want the shortcode to add new content, you can use null for the content.
metadata IEnumerable<KeyValuePair<string, Object>> New metadata to be added to the document as a result of executing the shortcode.

Return Value

Type Description
IShortcodeResult A shortcode result.
GitHub