-
how to add files or directories:
add an element to the files array (in
settings.json
) with the path of the file you want to compile relative toejs-compile.js
, without./
. Examples: if the file is in the same folder you would simply writefilename.js
if the file is in a subfolder you would writesub1/sub2/filename.js
add an element to the dirs array (in
settings.json
) with the path of the directory containing all the files you want to compile relative toejs-compile.js
, without./
at the start of the string but with a/
at the end.In the file
settings.json
add the directory where the compiled file named views.js will be written, default is the same directory asejs-compile.js
-
now you can run
ejs-compile.js
, the compiled views will be written topublic/js/views.js