#options ul li { float: left; clear: both; padding-bottom: 0.5em; }
#options ul li div { margin-left: 1.75em; }
#options label, #options input { float: left; }
+#options label.sub-option{ margin-left: 22px; margin-right: 5px }
#options input { margin-right: 0.5em; }
#stats { margin-bottom: 2em; overflow: hidden; margin-top: 0; }
#todo { font-family: monospace; margin-bottom: 2em; }
caseSensitive: byId('case-sensitive').checked,
keepClosingSlash: byId('keep-closing-slash').checked,
minifyJS: byId('minify-js').checked,
+ processScripts: byId('minify-js-templates').checked ? byId('minify-js-templates-type').value : false,
minifyCSS: byId('minify-css').checked,
lint: byId('use-htmllint').checked ? new HTMLLint() : null,
maxLineLength: parseInt(byId('max-line-length').value, 10)
var inputEls = byId('options').getElementsByTagName('input');
inputEls[10].checked = false;
inputEls[11].checked = false;
+ inputEls[18].checked = false;
return false;
};
Minify JS
</label>
</li>
+ <li>
+ <input type="checkbox" id="minify-js-templates">
+ <label for="minify-js-templates">
+ Minify JS Templates
+ <br>
+ <span class="quiet short">
+ Minify HTML served inside script tag with a custom type attribute like "text/x-handlebars-template"
+ </span>
+ </label>
+ </li>
+ <li>
+ <label for="minify-js-templates-type" class="sub-option">
+ Template type
+ </label>
+ <input type="input" id="minify-js-templates-type">
+ </li>
<li>
<input type="checkbox" id="minify-css" checked>
<label for="minify-css">
</label>
</li>
<li>
- <label for="max-line-length" style="margin-left: 22px; margin-right: 5px">
+ <label for="max-line-length" class="sub-option">
Max line length
</label>
<input type="number" id="max-line-length" value="0" min="0" max="10000">