Currently it looks like ejs-cli only wraps the call to ejs.renderFile() with the signature renderFile(filename, options, callback) - and there is no way to pass in a data parameter when rendering a template with ejs-cli.
It would be great to see this feature added. Currently I need to write a helper script that wraps ejs just so I can render a template from the shell with the data parameter.
Currently it looks like
ejs-clionly wraps the call toejs.renderFile()with the signaturerenderFile(filename, options, callback)- and there is no way to pass in adataparameter when rendering a template withejs-cli.It would be great to see this feature added. Currently I need to write a helper script that wraps
ejsjust so I can render a template from the shell with thedataparameter.