On 5 September 2013 21:26, Clinton Gormley <[email protected]> wrote:

> Hi all
>
> I'm using asciidoc -> docbook -> chunked html and I'd like to add an "Edit
> this file" link to each chunk.
>
> In order to do that, I think I need to customise the include:: system
> macro to output the current filename each time there is an include.  I've
> tried writing a custom inc:: block macro that then includes the file with
> the {include:<file>} system attribute, but that include the file verbatim,
> rather than processing.
>

Asciidoc macros are "output side" macros, rather than the traditional
"input side" macros.  That is they substitute directly into the output
stream, not into the input stream for further processing.  So it is not
possible to do this directly in Asciidoc.  The solution is to use your
favourite scripting, editing or input macro language before passing the
output to Asciidoc.

Cheers
Lex


> Any ideas about how to do this?
>
> thanks
>
> Clint
>
> --
> You received this message because you are subscribed to the Google Groups
> "asciidoc" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/asciidoc.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/asciidoc.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to