Hi!

On Sat, Apr 26, 2008 at 02:16:12PM +0200, Miklos Vajna wrote:
> i think a solution would be to buffer the ouput in case the output is a
> file and not stdin.

Not necessarily. There no reason to put all possible functionality into
single tool. I think it's better to develop additional script which will
process document and output ToC. Actually, I suppose such a "tool" can be
just separate config file for asciidoc:

- user run asciidoc asking to convert file.txt using xhtml11.conf
  * asciidoc run another asciidoc asking to convert file.txt using ToC.conf
    and wait until it finish and return prepared static ToC
  * asciidoc process file.txt as usually plus output result of previous
    asciidoc run in place of ToC

I will not be surprised if this can be done using current functionality -
I remember something about possibility to run external command from .conf
file. Source highlight work this way AFAIK.

-- 
                        WBR, Alex.

Attachment: pgpFBO2JdpJU8.pgp
Description: PGP signature

_______________________________________________
asciidoc-discuss mailing list
[email protected]
http://lists.metaperl.com/cgi-bin/mailman/listinfo/asciidoc-discuss

Reply via email to