On Sun, Aug 25, 2013 at 1:12 PM, mojavelinux [via Asciidoctor :: Discussion] <[hidden email]> wrote:
I keep thinking about when the Preprocessor is invoked. I want to run my thoughts by this list to see if anyone has any input on the matter.
Currently, the Preprocessor is invoked just before parsing begins. This is the most likely point the extension point will be used. However, it may also be useful to tap into the lifecycle after the header of the document has been read and parsed. After all, the header may contribute information/settings that can impact parsing internally.
Should the Preprocessor get invoked at this point as well?
- If so, should the same method be invoked (Preprocessor#process)?
In that case, how is the lifecycle phase communicated? (Perhaps the processor consults the existing Document#header? method)
- If not, should a separate method be called on the processor?I look forward to any input you can provide!
-Dan
If you reply to this email, your message will be added to the discussion below:http://discuss.asciidoctor.org/Preprocessor-phases-tp520.htmlTo start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML
| Free forum by Nabble | Edit this page |