A simpler reproduction is given by empty.bib, bar.adoc (two empty files) and the following foo.adoc:
:bibliography-database: empty.bib
:var: bar
// This works:
include::bar.adoc[]
// This (which in theory is equivalent) does not work:
include::{var}.adoc[]
While asciidoctor foo.adoc works, asciidoctor -r asciidoctor-bibliography foo.adocraises the following error:
asciidoctor: ERROR: foo.adoc: line 9: include file not found: /Users/paolobrasolin/.../{var}.adoc
@pddzaic observed this behaviour in https://github.com/riboseinc/asciidoctor-bibliography/issues/104#issuecomment-522586927
A simpler reproduction is given by
empty.bib
,bar.adoc
(two empty files) and the followingfoo.adoc
:While
asciidoctor foo.adoc
works,asciidoctor -r asciidoctor-bibliography foo.adoc
raises the following error: