Calls an oEmbed endpoint and renders the embedded content.
- Namespace
- Statiq
.Web .Shortcodes - Interfaces
- Base Types
-
- object
- Shortcode
- Derived Types
Syntax
public class EmbedShortcode : Shortcode, 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.
Fields
Name | Field Type | Constant Value | Summary |
---|---|---|---|
Endpoint | string | Endpoint |
static
|
Format | string | Format |
static
|
MaxHeight | string | MaxHeight |
static
|
MaxWidth | string | MaxWidth |
static
|
Url | string | Url |
static
|
Methods
Name | Return Value | Summary |
---|---|---|
ExecuteAsync |
Task |
Shortcodes for specific oEmbed services should override this method and call one of the other execute helper methods.
|
ExecuteAsync |
Task |
|
GetEmbedResultAsync |
Task |
|
GetEmbedResultAsync |
Task |