ShortcodeContext
Pennington.Markdown.Shortcodes
Per-invocation context describing the page that hosts the shortcode call site.
Properties
MetadataIFrontMatter- Front matter of the page being rendered.
RouteContentRoute- Route of the page being rendered.
Constructors
ShortcodeContext
#public ShortcodeContext(ContentRoute Route, IFrontMatter Metadata)
Per-invocation context describing the page that hosts the shortcode call site.
Parameters
RouteContentRoute- Route of the page being rendered.
MetadataIFrontMatter- Front matter of the page being rendered.
Pennington.Markdown.Shortcodes.ShortcodeContext
namespace Pennington.Markdown.Shortcodes;
/// Per-invocation context describing the page that hosts the shortcode call site.
public record ShortcodeContext
{
/// Front matter of the page being rendered.
public IFrontMatter Metadata { get; set; }
/// Route of the page being rendered.
public ContentRoute Route { get; set; }
/// Per-invocation context describing the page that hosts the shortcode call site.
public ShortcodeContext(ContentRoute Route, IFrontMatter Metadata)
;
}