From bcb2cbd237afb35bd9c7c69f0ee77f718e010b32 Mon Sep 17 00:00:00 2001 From: Marco Cedaro Date: Tue, 11 Nov 2014 20:42:38 +0000 Subject: [PATCH] Added variables interpretation in includes This change enables the use of variables in included files. --- tasks/grunt-htmlrefs.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tasks/grunt-htmlrefs.js b/tasks/grunt-htmlrefs.js index fb26efa..6ab4eda 100644 --- a/tasks/grunt-htmlrefs.js +++ b/tasks/grunt-htmlrefs.js @@ -107,7 +107,9 @@ module.exports = function(grunt) { return indent + l; }); - return lines.join(lf); + return grunt.template.process(lines.join(lf), { + data: block + }); }, remove: function( /*block*/ ) { return ''; // removes replaces with nothing