This documentation is also published as Markdown for efficient machine reading: the whole site is indexed at /llms.txt, and every page has a clean Markdown copy under /_llms/. These are generated from the same source and cost far fewer tokens to read than this rendered HTML.

Skip to main content Skip to navigation

ShortcodeContext Pennington.Markdown.Shortcodes

Per-invocation context describing the page that hosts the shortcode call site.

Properties

Metadata IFrontMatter
Front matter of the page being rendered.
Route ContentRoute
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

Route ContentRoute
Route of the page being rendered.
Metadata IFrontMatter
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)
; }