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.
--