Use Other HTML generator

What if some of your pages for the book are generated by some other tool?

How could you we combine that?

We could configure our own pre-processor that would run the generator and then replace the internal parts of our book with the appropriate content.

Let's see an example.