Currently, I am using grunt to convert jade files into HTML files.
The structure of my files is as follows:
index.jade
|--partials/
view1.jade
view2.jade
To compile these files, I am utilizing grunt-contrib-jade
. Below is the code snippet that I am using:
jade: {
compile: {
options: {
data: {
debug: true
}
},
files:
[{
expand: true,
cwd: 'src/',
src: ['*.jade', '*/*.jade'],
dest: 'dist/views',
ext: '.html',
}]
}
},
Although the compilation process works fine, it alters the file structure by placing all files in the dist/views
directory.
Is there a way to maintain the original file structure, achieving something like this?
dist/views
|--------- index.html
|---------/partials/
/ all other files
Thank you in advance.