Closed Industrial closed 10 years ago
Open the issue in then-jade. This is jade, not then-jade
not according to npm; https://npmjs.org/package/then-jade
My bad, I saw [jade]
at the start of the email subject and jumped to the wrong conclusion.
This is pretty experimental/unsupported. The way to get somewhere with fixing this would be to update the dependency of then-jade to the latest version of jade, but that requires quite a bit of work.
I found this to be my offending line; https://github.com/balderdashy/sails/blob/master/lib/configuration/consolidate.js#L177
it being in a catch block and throwing an error itself (both jade and then-jade arent installed in this case) will show the user that then then-jade module isnt available but doesn't say anything about jade which is the default option.
npm install --save jade
fixed my problem.
Since then-jade is not release grade yet I have to close this ticket (and wait for when stuff is Done(tm) before bugging people ..)
Using sails.js which uses then-jade I have these templates:
views/layout.jade
views/user/index.jade
if I request the url on the sails/express server that calls
res.render()
on this views/user/index.jade template, I get anUnexpected Identifier
error. It will work if I remove the../
but that's obviously not what I want :). If I donpm install -g jade; jade views/user/index.jade
then it will compile a correct jade file. I'm not sure how to test a (standalone without sails) compilation of a jade file withthen-jade
.