changer/grunt-targethtml — pull request #3 by dharFr (2012-10-13 15:39:10+00:00)
Title: Task should read files path using grunt file API instead of data API

Hi,

File paths (src and dest) should be read from `this.file` instead of `this.data`, otherwise [grunt directives](https://github.com/gruntjs/grunt/blob/master/docs/helpers_directives.md#built-in-directives) won't be expanded.
See example bellow:

``` js
grunt.initConfig({
pkg: '',
[...]
targethtml: {
release: {
src: 'index.html',
dest: '<%= build.dest %>/<%= pkg.version %>/index.html'
}
},
build: {
dest: 'dist'
},
[...]
});
```
See [Inside Multi Tasks](https://github.com/gruntjs/grunt/blob/master/docs/api.md#inside-multi-tasks) doc for more details.

Cheers,
Olivier.