Reputation: 4351
In my Gruntfile I have
jade: {
html: {
expand: true,
src: ['public/views/**/*.jade'],
dest: '.tmp',
ext: '.html'
}
},
which does compile the .jade files to html, but includes the public/ directory, resulting in .tmp/public/views/foo.html, but I would like to have .tmp/views/foo.html, instead.
I have added an additional static path for express, which does allow for the public/*/.html to be served back, but it would be nice to keep things clean.
Any ideas?
Upvotes: 2
Views: 1362
Reputation: 5729
try this:
jade: {
html: {
files: [{
expand: true,
cwd: 'public/',
src: ['views/**/*.jade'],
dest: '.tmp',
ext: '.html'
}]
}
}
Upvotes: 2