Skip to content
Snippets Groups Projects
Commit b3bd13d8 authored by Shane Tomlinson's avatar Shane Tomlinson
Browse files

Remove HTML comments to trim down the amount of stuff sent to the client.

parent 355f9e25
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