Conditional inclusion "not equals"

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

Conditional inclusion "not equals"

Jeremie Bresson
I have an adoc document that looks like that:

:forgeName: Eclipse

ifeval::["{forgeName}"!="Eclipse"]
Some Text...
endif::[]

(The real document is more complicated: the if bloc is in reality in a shared text bloc. There is another document consuming the same text bloc where the forgeName is set to something else).

In the Asciidoctor.js Live Preview in Chrome (version 1.5.2.120) I have an error:
Error
NoMethodError : asciidoctor: FAILED: : Failed to parse source, undefined method `!=' for "Eclipse"
I cannot reproduce it with Asciidoctorj. Thank you in advance for your help
Reply | Threaded
Open this post in threaded view
|

Re: Conditional inclusion "not equals"

mojavelinux
Administrator
This will be resolved in Asciidoctor.js 1.5.3, once released. It will then make its way into the extensions once that happens. Opal was previously missing this method, but it has since been fixed.

Cheers,

-Dan

On Fri, Dec 11, 2015 at 1:05 AM, Jeremie Bresson [via Asciidoctor :: Discussion] <[hidden email]> wrote:
I have an adoc document that looks like that:

:forgeName: Eclipse

ifeval::["{forgeName}"!="Eclipse"]
Some Text...
endif::[]

(The real document is more complicated: the if bloc is in reality in a shared text bloc. There is another document consuming the same text bloc where the forgeName is set to something else).

In the Asciidoctor.js Live Preview in Chrome (version 1.5.2.120) I have an error:
Error
NoMethodError : asciidoctor: FAILED: : Failed to parse source, undefined method `!=' for "Eclipse"
I cannot reproduce it with Asciidoctorj. Thank you in advance for your help



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



--
Dan Allen | @mojavelinux | http://google.com/profiles/dan.j.allen
Reply | Threaded
Open this post in threaded view
|

Re: Conditional inclusion "not equals"

Jeremie Bresson
Thank you for the quick reply...
Reply | Threaded
Open this post in threaded view
|

Re: Conditional inclusion "not equals"

Jeremie Bresson
In reply to this post by Jeremie Bresson
It now works great with the 1.5.4.100 Version of the Chrome Plugin.

Thank you a lot for this udpate and for the fix.
Reply | Threaded
Open this post in threaded view
|

Re: Conditional inclusion "not equals"

mojavelinux
Administrator
\o/

On Mon, Feb 1, 2016 at 11:22 PM, Jeremie Bresson [via Asciidoctor :: Discussion] <[hidden email]> wrote:
It now works great with the 1.5.4.100 Version of the Chrome Plugin.

Thank you a lot for this udpate and for the fix.


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



--
Dan Allen | @mojavelinux | http://google.com/profiles/dan.j.allen