Closed okendoken closed 10 years ago
Hi,
For the moment you can't like this.
'handlebarslayouts': {
files: {
src: 'src/*.hbs',
dest: 'dest/*.html'
}
}
'src/desitnation-file.html': 'src/source-file.hbs',
You can list your files like :
'handlebarslayouts': {
files: {
'src/index.html': 'src/index.hbs',
'src/week-end.html': 'src/week-end.hbs',
'src/event.html': 'src/event.hbs',
'src/event-edit.html': 'src/event-edit.hbs',
'src/event-add.html': 'src/event-add.hbs',
'src/artists.html': 'src/artists.hbs',
'src/artist.html': 'src/artist.hbs',
...
}
}
or create a function to return an object like it.
I add this feature in my todo list.
Best regards
Try the last version :8ball:
Wow man! thanks for such a quick fix!
Can compile multiple files now.
Btw, when tried to install your plugin on windows via npm or just git-clone it, it fails, as you have a file named *.html
in your example/dist
folder, which is not supported by windows.
Thanks once again!
Ooups…. I do nto have Windows on my computer. I try to fix it tomorrow.
I do it !
Tel me if this news version rocks for you on windows.
Yep, all good now :+1:
Perfect, I close this issue.
Hi there!
Thanks for your efforts - grunt-handlebars-layouts is exactly what I was looking for.
I have question: Is it possible to compile multiple templates simultaneously? Something like that:
I am getting the following error now:
Thanks