Module: ejs

Embedded JavaScript templating engine.

Source:

Members

(inner) _VERSION_STRING :string

Type:
  • string
Source:

Methods

(static) fileLoader(filePath) → {String}

fileLoader is independent

Parameters:
Name Type Description
filePath String

ejs file path.

Source:
Returns:

The contents of the specified file.

Type
String

(inner) getIncludePath(path, options) → {String}

Get the path to the included file by Options

Parameters:
Name Type Description
path String

specified path

options Options

compilation options

Source:
Returns:
Type
String

(inner) resolvePaths(name, paths) → {String}

Try to resolve file path on multiple directories

Parameters:
Name Type Description
name String

specified path

paths Array.<String>

list of possible parent directory paths

Source:
Returns:
Type
String