diff options
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 16 |
1 files changed, 11 insertions, 5 deletions
@@ -44,11 +44,17 @@ luna [options] LUAFILE Number of HTTP-workers to start (default $(nproc)) ``` -LUAFILE must point to a Lua file that may or may not register routes to handle -(via calling `luna.route.static` or `luna.route.route`). Whatever the LUAFILE -returns is ignored. If LUAFILE defines no routes luna will execute the file and -then exit. This behavior is useful when you want to have a script file with an -access to the luna API. +LUAFILE must point to a Lua (or Fennel) file that may or may not register +routes to handle (via calling `luna.route.static` or `luna.route.route`). +Whatever the LUAFILE returns is ignored. If LUAFILE defines no routes luna will +execute the file and then exit. This behavior is useful when you want to have a +script file with an access to the luna API. + +> luna has built-in fennel support and as such you may provide any .fnl file +> as the LUAFILE. luna takes care of setting everything up properly for that +> so you do not need to configure traceback function, run "fennel.install" +> and etc. In this scenario fennel library is globally accessible +> via `fennel` variable. If luna is started with -D flag it will accept user input into its stdio. The input is executed in Lua state as is or (if `luna.onEval` was called in |
