I'd like to be able to compile multiple views to a static html file, with the same jade-template.
In order to do that, I made some modifications to mimosa-server-template-compile.
https://github.com/simonwinkler/mimosa-server-template-compile
The desired functionality is provided with these modifications. However, one thing does not work as expected. The script logs not all success messages to the console, in spite of the fact that it successfully creates all static html files.
When I run a build with the test-config prepended to index.js in my fork, it only logs two success messages.
Success - server-template-compile wrote file public/index.html
Success - server-template-compile wrote file public/index-1.html
Correct would be:
Success - server-template-compile wrote file public/index.html
Success - server-template-compile wrote file public/index-1.html
Success - server-template-compile wrote file public/index-2.html
Success - server-template-compile wrote file public/test.html
It's only the logging that is incomplete, the corresponding files are created.
In my test-case, "__writeOutputFile" is called four times, as expected. The fs.writeFile-callback (line 186) function on the other hand is only called twice. Does anyone have an idea?
Thanks in advance
Simon
--
You received this message because you are subscribed to the Google Groups "mimosajs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mimosajs+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.