mirror of
https://github.com/CryptKeeperZK/ejs.git
synced 2026-01-09 07:27:56 -05:00
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:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user