Closed hfjallemark closed 11 years ago
Consolidate, the library this module wraps, relies on you having jade installed. If you are compiling "server templates", then for them ever to work pre-compiled, like via Express, then you would have needed jade at some point. Usually this is taken care of by "mimosa-server", but that is just a pleasant side effect.
In other words, if you are using jade on the server, you need jade anyway, so this module doesn't bother including it. I think that's how I'd prefer to keep it, rather than including all the possible modules now and in the future.
That makes sense?
I guess you are not using mimosa-server in this particular case?
At the very least this bears some documentation updates to make it clear you need to BYOC. I'll do that now.
It works when running mimosa watch -sd
but not when running mimosa build
.
So I need to run npm install jade
in the directory where my mimosa-config is?
Going to backtrack. I'm going to go ahead and just require in those libraries into the module. Might not be the right thing to do from a design perspective, but its the right UX for the module.
I agree:-) Thanks David.
0.4.1
is pushed to NPM. I didn't have a second to test it, have to jump into something else, but all I believe I needed to do was include the libraries in the app. So no code changed. All should be good now. Let me know if you have any trouble! Thanks!
Works excellent, thanks!
I am getting the following error:
If I manually install either
jade
orthen-jade
in my project folder it works.