- From: Fuqiao Xue <xfq@w3.org>
- Date: Thu, 14 Oct 2021 11:05:51 +0800
- To: Marcos Caceres <marcosc@w3.org>
- Cc: spec-prod@w3.org
I see. Thank you for your quick response! Fuqiao On 2021-10-14 10:29, Marcos Caceres wrote: > Hey, > > You can use either, but personally I'd go with `.postProcess` as it's > intended exactly for what you describe. > > The difference is just that postProcess takes an array of functions > and runs them in order. It also has slightly better error reporting if > one of the functions fails. > >> On 14 Oct 2021, at 11:52 am, Fuqiao Xue <xfq@w3.org> wrote: >> >> Hi, >> >> I would like to execute some JavaScript functions after ReSpec >> finishes all its processing for one of my documents. I found these two >> methods: >> >> * https://github.com/w3c/respec/wiki/postProcess >> * >> https://github.com/w3c/respec/wiki/document.respec#documentrespecisready >> >> I wonder if there are differences between them? Or can I use either >> one? >> >> Thanks, >> >> Fuqiao >>
Received on Thursday, 14 October 2021 03:05:52 UTC