Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Individual events for when each file is parsed & rendered #72

Open
weaverryan opened this issue Dec 9, 2018 · 1 comment
Open

Individual events for when each file is parsed & rendered #72

weaverryan opened this issue Dec 9, 2018 · 1 comment

Comments

@weaverryan
Copy link
Collaborator

We have an event system (yay!) but I think there's no way yet to know when each file is being parsed/rendered. We'd like to add some output while running our version of the parser - e.g.

Parsing foo.rst
Parsing bar.rst
Rendering foo.html

Something like this - it'll help when there are errors and also help with seeing progress (we're thinking of also using these same events to show a progress bar through the parsing & rendering progress).

Is that possible now? Or can we dispatch a new event?

Thanks!

@weaverryan
Copy link
Collaborator Author

Or maybe PreParseDocumentEvent::PRE_PARSE_DOCUMENT is what we need? It looks like this is parsed once per document, but the description is:

Dispatches a method named preParseDocument() before a node is parsed.

It says "node", not "document"... but the docs might be right and I may be misunderstanding the purpose of this event.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant