Skip to content

Commit

Permalink
Merge pull request #704 from mshima/patch-1
Browse files Browse the repository at this point in the history
root can be arrays.
  • Loading branch information
mde authored Nov 19, 2022
2 parents 5919964 + 9cc37d7 commit e92b960
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ You should never give end-users unfettered access to the EJS render method, If y
- `cache` Compiled functions are cached, requires `filename`
- `filename` The name of the file being rendered. Not required if you
are using `renderFile()`. Used by `cache` to key caches, and for includes.
- `root` Set project root for includes with an absolute path (e.g, /file.ejs).
- `root` Set template root(s) for includes with an absolute path (e.g, /file.ejs).
Can be array to try to resolve include from multiple directories.
- `views` An array of paths to use when resolving includes with relative paths.
- `context` Function execution context
Expand Down
6 changes: 3 additions & 3 deletions docs/jsdoc/options.jsdoc
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@
* 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|String[]} [root=undefined]
* The path to the template root(s). When this is set, absolute paths for includes
* (/filename.ejs) will be relative to the template root(s).
*
* @property {String} [openDelimiter='<']
* The opening delimiter for all statements. This allows you to clearly delinate
Expand Down

0 comments on commit e92b960

Please sign in to comment.