dwightjack/grunt-ejs-render — pull request #7 by ertrzyiks (2014-11-18 13:01:47+00:00)
Title: Data as a function

With this change render task support builder function for data option. May be useful to make grunt runtime operations on templating scope, like this:

render: {
index: {
options: {
data: function () {
return {
config: getConfig()
};
}
},
files: {
'index.html': 'index.ejs'
}
}
}