Skip to content

EJS configuration file #789

@dmurvihill

Description

@dmurvihill

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions