Pass data to the EJS CLI
mainYou can provide data for rendering via several methods in the CLI:
- Stdin: Pipe JSON data or redirect a file into the command.
- Data File: Use the
-fflag with a JSON file. - Command-line option: Use the
-iflag with a URI-encoded JSON string. - Direct arguments: Pass key-value pairs at the end of the command.