Open donpark opened 11 years ago
Hi, maybe you could also consider refactoring the parsing part to make it synchronous.
I tried to find the a way to do it with the current code, but the loading through jsdom already seems to make it asynchronous.
Right now I have to iterate my array, make them all into promises etc. a lot of extra code where basically I just need a utility method to convert html into jade.
Anyway, the current code works very well, so big thanks for that :-)
Until ES6 yield support is broadly available, I am afraid your best path to synchronous use of html2jade is child_process
. :-)
ES6 yield support is available now :)