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 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[]
----
Free forum by Nabble | Edit this page |