Add rmWhitespace mode

It is not a full-fledged HTML minifier, nor will it be. It is designed to
be as "safe" as possible.

Fixes #51.
This commit is contained in:
Timothy Gu
2015-02-06 21:08:41 -05:00
parent 4617f0e3c8
commit c745b46d7d
6 changed files with 52 additions and 0 deletions

View File

@@ -17,6 +17,12 @@
* whose name is specified by {@link module:ejs.localsName} (default to
* `locals`).
*
* @property {Boolean} [rmWhitespace=false]
* Remove all safe-to-remove whitespace, including leading and trailing
* whitespace. It also enables a safer version of `-%>` line slurping for all
* scriptlet tags (it does not strip new lines of tags in the middle of a
* line).
*
* @property {Boolean} [client=false]
* Whether or not to compile functions that are to be included in the browser.
*