Re: Including Vimeo videos in a document

Posted by asotobu on
URL: https://discuss.asciidoctor.org/Including-Vimeo-videos-in-a-document-tp492p495.html

well yes you can do it with custom templates because you can use conditionals on template depending on a defined attribute.

See this example in Haml for deckjs template:

https://github.com/asciidoctor/asciidoctor-backends/blob/master/haml/deckjs/block_ulist.html.haml

So you can create an attribute to the video block which tells you if there is a viemo or a youtube link, and then in your template you could generate one code or other.