Back to Discussions

Conditionals

I'm wondering if it will be helpful include a conditional flag system to deal with the different export formats like:

#if PDF
...
#else if HTML
...
#else if EPUB
...
#else
...
#end  

Sometimes you want to embed a media object (like a YouTube video or Soundcloud podcast) that you know that doesn't work (and doesn't make sense that will work) on a PDF. But it could be referenced the same media object by other kind of content (a QR Code that points to the video):

#if HTML
<embed>....</embed>
#else if PDF
img of a QR Code
#else
A video :)
#end

Feedbacks?

Started by xbelanch Discussion started Jul 02, 2014