Embedding (feincms3.embedding)#

Embedding videos and other 3rd party content without oEmbed.

feincms3.embedding.embed(url, *, handlers=[embed_youtube, embed_vimeo])[source]#

Run a selection of embedding handlers and return the first value, or None if URL couldn’t be processed by any handler.

You could write your own handler converting the URL argument into a plain old anchor element or maybe even feincms3.plugins.external.oembed_html() if you wanted to fall back to oEmbed.

feincms3.embedding.embed_vimeo(url)[source]#

Return HTML for embedding Vimeo videos or None, if argument isn’t a Vimeo link.

The Vimeo <iframe> is wrapped in a <div class="responsive-embed widescreen vimeo"> element.

feincms3.embedding.embed_youtube(url)[source]#

Return HTML for embedding YouTube videos or None, if argument isn’t a YouTube link.

The YouTube <iframe> is wrapped in a <div class="responsive-embed widescreen youtube"> element.