Embed Class

Summary

Calls an oEmbed endpoint and renders the embedded content.
Assembly
Wyam.Core.dll
Namespace
Wyam.Core.Shortcodes.Html
Interfaces
Base Types
  • Object
Derived Types
graph BT Type-->Base0["Object"] Type-.->Interface0["IShortcode"] click Interface0 "/api/Wyam.Common.Shortcodes/IShortcode" Type["Embed"] class Type type-node Derived0["YouTube"]-->Type click Derived0 "/api/Wyam.Core.Shortcodes.Html/YouTube" Derived1["Giphy"]-->Type click Derived1 "/api/Wyam.Core.Shortcodes.Html/Giphy" Derived2["Twitter"]-->Type click Derived2 "/api/Wyam.Core.Shortcodes.Html/Twitter" Derived3["CodePen"]-->Type click Derived3 "/api/Wyam.Core.Shortcodes.Html/CodePen"

Syntax

public class Embed : IShortcode

Examples

<?# Embed https://codepen.io/api/oembed https://codepen.io/gingerdude/pen/JXwgdK /?>

Remarks

See https://oembed.com/ for details on the oEmbed standard and available endpoints.

Methods

GitHub