<commit_before>[[includeprocessor]]
= Include Processor

//TODO Note you can only have one include processor at a time.

Asciidoctor supports include other documents via the include directive.
Whit it, you can simply write `include::other.adoc[]` to include the contents of the file `other.adoc`.
Include Processors allow to intercept this mechanism and for instance include the content over the network.

For example, similarly to the *unix `ls` command, an Include Processor could resolve the include directive `include::ls[]`, and insert the contents of the current directory in the document.
Our example will replace the include directive `include::ls[]` with the directory contents, adding one line for every file found.

// Don't know how to include this file without asciidoctor trying to process include::ls[]
.ls-include.adoc
[source,indent=0]
----
  ----<commit_msg>Grammar tweaks to include processor extension page<commit_after>[[includeprocessor]]
= Include Processor

//TODO Note you can only have one include processor at a time.

Asciidoctor supports including other documents via the include directive.
With it, you can simply write `include::other.adoc[]` to include the contents of the file `other.adoc`.
Include Processors allow to intercept this mechanism and for instance include the content over the network.

For example, similar to the *unix `ls` command, an Include Processor could resolve the include directive `include::ls[]`, and insert the contents of the current directory in the document.
Our example will replace the include directive `include::ls[]` with the directory contents, adding one line for every file found.

// Don't know how to include this file without asciidoctor trying to process include::ls[]
.ls-include.adoc
[source,indent=0]
----
  ----
{'fraction_non_alphanumeric': 0.07602012297372834, 'fraction_numerical': 0.0011179429849077697, 'mean_word_length': 4.868852459016393, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '410672', 'n_tokens_mistral': 451, 'n_tokens_neox': 435, 'n_words': 240}