STAH/grunt-dustjs — pull request #4 by bernharduw (2012-11-02 18:13:09+00:00)
Title: Make custom template names possible

I added the option to configure the fullname option as a function so you can use custom template name formatters in your grunt script.

e.g.
```javascript
{
'templates/compiled/all.js': ['templates/all/**/*.html'],
options: {
fullname: function(filepath) {
return path.relative('templates/all', path.dirname(filepath)).split(path.sep) // folder names
.concat([path.basename(filepath, path.extname(filepath))]) // template name
.join('.');
}
}
}
```

would deliver

```javascript
[
'main.index',
'main.sidebar',
'partials.header',
'partials.footer'
]
```