diff options
| author | unwox <me@unwox.com> | 2025-09-08 15:07:22 +0600 |
|---|---|---|
| committer | unwox <me@unwox.com> | 2025-09-08 15:22:13 +0600 |
| commit | 40abca541e331c213a5cc94c676d58b3ca84b7ad (patch) | |
| tree | d6becf38f191f1c8b8c670c1674bde51953149ce /README.md | |
| parent | 89fe6e4978e47254ae0c349d02cab6b267e5076f (diff) | |
add native support for fennel
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 |
