Re: Do I need an extension or not for the following use case ?
Posted by
David Jencks on
Apr 09, 2020; 2:43pm
URL: https://discuss.asciidoctor.org/Do-I-need-an-extension-or-not-for-the-following-use-case-tp7854p7867.html
I don’t know of an example. I think the main point is that the two processors be in the same code so they can share state, namely the stub block that needs to be filled in by the tree processor.
Since my solution is intended to be fairly generic I do not have the block macro generate the entire table but rather run only when it immediately follows an existing table, to which it appends rows. That way the block macro doesn’t need to deal with the complexity of generating the entire table structure, formatting, columns, header, etc etc. If you adopt that strategy I think your block macro could basically serve to locate the table to append to, and then the tree processor actually do the appending.
David Jencks
On Apr 9, 2020, at 4:30 AM, ch007m [via Asciidoctor :: Discussion] <
[hidden email]> wrote:
Is there an example available (stub processor) and covering that use case ?
Charles Moulliard
Apache Committer / Technologist Evangelist / Blogger / MiddleWare Specialist
Twitter : @cmoulliard