You got it!
In your first example, you are requesting the attribute on the block, not the document.
If you ever want it to check the block, then the document if it's not on the block, you have to tell it to keep searching upwards:
#{attr :revnumber, nil, true}
Best,
-Dan
On Thu, Jan 9, 2020 at 2:21 AM phgiraud [via Asciidoctor :: Discussion] <
[hidden email]> wrote:
Just figured out how to get document attributes:
#{document.attr :revnumber}
--