Login  Register

Re: List of included files

Posted by mojavelinux on Oct 14, 2019; 8:23pm
URL: https://discuss.asciidoctor.org/List-of-included-files-tp7225p7226.html

Yes, the files that are included get put into the following collection:

doc = Asciidoctor.load_file 'sample.adoc', safe: :safe
doc.catalog[:includes]

The other option is to use a custom include processor, which will get called each time an include directive is found.

Best,

-Dan

On Mon, Oct 14, 2019 at 2:06 PM Thalamos [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Is it possible to receive a list of included files through the plugin api? So basically the 'target' value of an IncludeProcessor but without actually having to implement the logic of such a processor. I'd like to generate a file that has all includes listed and therefore can be used by a Makefile that would put all necessary files into an archive.


If you reply to this email, your message will be added to the discussion below:
https://discuss.asciidoctor.org/List-of-included-files-tp7225.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML


--
Dan Allen | @mojavelinux | https://twitter.com/mojavelinux