Add "root" item in options

This commit is contained in:
cnwhy
2016-05-28 01:15:15 +08:00
parent e3e43a2014
commit 27b7b9c2c8
5 changed files with 48 additions and 15 deletions

View File

@@ -36,6 +36,10 @@
* The filename of the template. Required for inclusion and caching unless
* you are using {@link module:ejs.renderFile}. Also used for error reporting.
*
* @property {String} [root=undefined]
* The path to the project root. When this is set, absolute paths for includes
* (/filename.ejs) will be relative to the project root.
*
* @property {String} [delimiter='%']
* The delimiter used in template compilation.
*