For the Java Bean Validation spec, we make use of includes: for each chapter there is an individual AsciiDoc source file which is included into a central master file, but also source code listings are included from Java source files into the document.
Is there a way to create an AsciiDoc file which has pulled in all the includes? I.e. I don't want to render any output format (HTML etc.) but just get a single AsciiDoc file with all includes incorporated. The use case is to have a way for showing a single diff between spec revisisions (which then can viewed nicely using the rich diff viewer on GitHub).
We had to make a few changes to the preprocessed output in order to be more inline with the result we expected (we wanted to compare the result to a previous version not using source includes and we had a space/tab difference). But in simple cases, your preprocessor should be 4 lines of code to save the output.