Login  Register

Re: Maven plugin and extensions

Posted by torngat on May 15, 2015; 12:31am
URL: https://discuss.asciidoctor.org/Maven-plugin-and-extensions-tp3149p3210.html

Small update:

I found that I can use an "asciidoc:" directive in a Slim template to have some Asciidoc text interpreted, but I keep getting this error when trying to use an include:: directive:

  (ArgumentError) wrong number of arguments calling `initialize` (1 for 5)
when trying
----
asciidoc: include::{generated}/error-example/http-request.adoc[]
----

I've tried with a simple statement like
----
asciidoc: I'm writing some *Asciidoc*!
----

which renders in italics without the 'I':  'm writing some *Asciidoc*!

I read in Slim documentation that one has to configure the embedded engines.  The presence of "asciidoc:" doesn't make it balk, so I'm guessing the engine is already configured and I'm just not using it correctly.  I'm going to keep working at it.

I wonder, too, if I'll be able to refer to both Slim and Asciidoc variables within that statement.  Something like
----
include::{asciidoc_var}/somefile-#{slim_var}.adoc[]
----

Cheers!

Sebastien