Meta Class

Summary

Renders the metadata value with the given key from the current document.
Assembly
Wyam.Core.dll
Namespace
Wyam.Core.Shortcodes.Metadata
Interfaces
Base Types
  • Object
graph BT Type-->Base0["Object"] Type-.->Interface0["IShortcode"] click Interface0 "/api/Wyam.Common.Shortcodes/IShortcode" Type["Meta"] class Type type-node

Syntax

public class Meta : IShortcode

Remarks

The metadata value will be rendered as a string. If no value exists with the specified key, nothing will be rendered. In addition to using the shortcode by the Meta name like <?# Meta key /?>, this shortcode can also be used with a special syntax: <?#= key /?>.

Methods

Name Value Summary
Execute(KeyValuePair<string, string>[], string, IDocument, IExecutionContext) IShortcodeResult
Executes the shortcode and returns an Wyam.Common.Shortcodes.IShortcodeResult.
GitHub