mirror of
https://github.com/srid/ema.git
synced 2024-12-02 09:15:10 +03:00
700 B
700 B
order |
---|
4 |
CLI
Ema apps have a basic CLI argument structure that takes two kinds of input:
-C <dir>
: specifies the "input directory" (current working directory by default)gen
subcommand: generates the static site, instead of starting up the dev server
Ema (runEma
) will change the current working directory to the "input directory" before running your application code. It, along with the "gen" subcommand (if used), is passed as the Ema.CLI.Action
type to your render
function. You can also use runEmaWith
if you are manually handling the CLI arguments yourself.