Skip to content
Snippets Groups Projects
Commit 29ee490a authored by Sean McArthur's avatar Sean McArthur
Browse files

Merge pull request #4 from shane-tomlinson/remove_html_comments

Remove HTML comments from compiled templates
parents 355f9e25 b3bd13d8
No related branches found
No related tags found
No related merge requests found
......@@ -41,6 +41,9 @@ exports.generate = function generate(templatesDir, namePrefix, lastGen) {
var templateName = namePrefix + fileName.replace(/\.ejs/, '');
var templateText = fs.readFileSync(path.join(templatesDir, fileName), "utf8");
// remove HTML comments
templateText = templateText.replace(/<!--[\s\S]*?-->/g, '');
templates[templateName] = ejs.compile(templateText, {
client: true,
compileDebug: !config.get('use_minified_resources')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment