Skip to content
This repository was archived by the owner on May 23, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions tasks/grunt-htmlrefs.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,12 @@ module.exports = function(grunt) {
},
inlinecss: function(block) {
var indent = (block.raw[0].match(/^\s*/) || [])[0];
block.dest = grunt.template.process(block.dest, {data: block});
var lines = grunt.file.read(block.dest).replace(/\r\n/g, '\n').split(/\n/).map(function(l) {
return indent + l;
});
return indent + grunt.template.process(inlineCSSTemplate, {
data: {
dest: lines
}
});
var options = _.extend(block, {dest:lines});
return indent + grunt.template.process(inlineCSSTemplate, {data: options});
},
include: function(block, lf, includes) {
// let's see if we have that include listed
Expand Down