Summary
A factory method for use from inside an Wyam.Common.Shortcodes.IShortcode to create an Wyam.Common.Shortcodes.IShortcodeResult.
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