ejs icon indicating copy to clipboard operation
ejs copied to clipboard

EJS configuration file

Open dmurvihill opened this issue 7 months ago • 1 comments

I'm expecting to run the ejs CLI repeatedly with the same settings (rendering a static Web site).

Rather than this:

ejs src/index.ejs --data-file data.json --strict  --output-file dist/index.html

I'd rather type this:

ejs

With the options coming from a file ejsconfig.json:

{
  "templateFile": "src/index.ejs",
  "dataFile": "data.json",
  "outputFile": "dist/index.html",
  "strict": true
}

This will make my build script in package.json much easier to read.

Any interest in this feature?

dmurvihill avatar Jul 24 '25 23:07 dmurvihill

Could be useful. I'd be happy to take a look at a PR implementing something like this.

mde avatar Aug 03 '25 23:08 mde