Embed Templating

The Embed field will let content authors paste an oEmbed supported service resource URL (YouTube, Vimeo, Soundcloud, etc.), and add the embedded content to your website.

Usage

Here’s an example of how to integrate the Embed field into your templates.

  • ejs
  • pug
  • pug (API v1)
Copy
<%- document.data.video.html %>
Copy
!= document.data.video.html
Copy
!= document.get('product.video').asHtml()