grunt-includes
grunt-includes copied to clipboard
Can't seem to get the option.template to work
Hi,
I'm testing out your plugin and the basics are really straightforward. I might be doing something dumb, but wanted your opinion.
Ideally I'd have one template HTML file app/pages/wrapper.html
Inside this file I have the {{file}} variable. I then have this defined in my gruntfile like this:
includes: {
files: {
src: ['app/pages/partials/*.html'], // Source files
dest: 'dist', // Destination directory
flatten: true,
cwd: '.',
options: {
template: 'app/pages/wrapper.html',
debut: true
}
}
},
This does nothing to my src files. I've even tried a hardcoded HTML string. How is the template options supposed to work?
My file structure:
/app
/partials
page1.html
page2.html
wrapper.html
+1 xD