We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7180fe5 commit b933db8Copy full SHA for b933db8
tasks/patternprimer.js
@@ -76,6 +76,8 @@ module.exports = function(grunt) {
76
// generates the html output for the patterns
77
var outputPatterns = function (patterns, cb) {
78
getSourceFile(function generatePatterns(content) {
79
+ var scripts = content.match(/<script[\s\S]*?>[\s\S]*?<\/script>/g);
80
+ content = content.replace(/<script[\s\S]*?>[\s\S]*?<\/script>/g, "");
81
patterns.forEach(function (file) {
82
content += '<hr/>';
83
content += '<div class="pattern"><div class="display">';
@@ -85,6 +87,7 @@ module.exports = function(grunt) {
85
87
content += '</textarea>';
86
88
content += '</div></div>';
89
});
90
+ content += scripts;
91
content += '</body></html>';
92
cb(content);
93
0 commit comments