grunt-include-source
Advanced tools
Comparing version
{ | ||
"name": "grunt-include-source", | ||
"description": "Include your sources into your HTML files automatically.", | ||
"version": "0.3.7", | ||
"version": "0.3.8", | ||
"homepage": "https://github.com/jwvdiermen/grunt-include-source", | ||
@@ -6,0 +6,0 @@ "author": { |
# grunt-include-source | ||
> Include your sources into your HTML files automatically. Also supports including Bower components that expose their source files via the *sources* property in the `bower.json` file. | ||
> Include your sources into your HTML files automatically. | ||
@@ -230,2 +230,7 @@ ## Getting Started | ||
### 2014-05-03 ver. 0.3.8 | ||
* replace all instances of {filePath} instead of the only the first | ||
* add {filePathDecoded} to enable use of raw URL which isn't encoded | ||
### 2014-04-27 ver. 0.3.7 | ||
@@ -232,0 +237,0 @@ |
@@ -211,3 +211,6 @@ /* | ||
grunt.log.debug('Including file "' + file + '".'); | ||
includeFragments.push(typeTemplates[include.options.type].replace('{filePath}', url.resolve(include.options.baseUrl || options.baseUrl, file))); | ||
includeFragments.push(typeTemplates[include.options.type] | ||
.replace(/\{filePath\}/g, url.resolve(include.options.baseUrl || options.baseUrl, file)) | ||
.replace(/\{filePathDecoded\}/g, decodeURI(url.resolve(include.options.baseUrl || options.baseUrl, file))) | ||
); | ||
}); | ||
@@ -214,0 +217,0 @@ |
26325
0.65%294
1.03%247
2.07%