conditions in docinfo

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

conditions in docinfo

bimlas
Is it possible to use conditions in docinfo files? For example:

<link rel="alternate" hreflang="hu" href="foo.bar.hu">
ifdef::condition[]
<link rel="alternate" hreflang="en" href="foo.bar.com">
endif::condition[]
Reply | Threaded
Open this post in threaded view
|

Re: conditions in docinfo

mojavelinux
Administrator
Not currently.

We could run the docinfo file through the PreprocessorReader. However, since the docinfo file is out of the flow of the document, we'd have to make some decisions about which attributes are available at the time it is read. I think I'd rather start with having this be part of the proposed docinfo extension point, which would allow you to handle the docinfo callback to meet your requirements.


-Dan

On Fri, Nov 7, 2014 at 4:15 AM, BimbaLaszlo [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Is it possible to use conditions in docinfo files? For example:

<link rel="alternate" hreflang="hu" href="foo.bar.hu">
ifdef::condition[]
<link rel="alternate" hreflang="en" href="foo.bar.com">
endif::condition[]


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/conditions-in-docinfo-tp2441.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--