I am currently writing a conversion from org-mode headline deadlines/schedules to pgf-gantt charts. Ideally I would like to create a custom dynamic block that contains the result of my parsing, and then have a custom exporter for that dynamic block that creates the pgf-gantt code, so that I can later add exporters for other formats.
Q1: So, is there a mechanism similar to org-dblock-write: only for exporting dblocks? I cannot find any documentation on this.
Q2: If there is no such mechanism, what would be the best way of storing that pgf source code so that it gets integrated into latex export, but doesn't interfere with other exporters?