diff options
| author | Andrey Listopadov <andreyorst@gmail.com> | 2022-10-30 20:20:40 +0300 |
|---|---|---|
| committer | Andrey Listopadov <andreyorst@gmail.com> | 2022-10-30 20:20:40 +0300 |
| commit | f2163b3e571d9aa7dd2b311b9e3869e07b5d43b9 (patch) | |
| tree | 061bf0de73177425773fc76cfb9207935103800d /README.md | |
| parent | 0f201a6a2e40ed645f753aa799e854bcbd3e0bbf (diff) | |
update installation instructions
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 16 |
1 files changed, 10 insertions, 6 deletions
@@ -10,7 +10,16 @@ Therefore, certain functions were altered to better suit the domain. Clone library into your project or put it as a git submodule: - $ git clone --recursive https://gitlab.com/andreyorst/fennel-cljlib club + $ git clone --recursive https://gitlab.com/andreyorst/fennel-cljlib cljlib + +Make sure to set up the `FENNEL_PATH` and `LUA_PATH` environment variables to include the installation directory: + + FENNEL_PATH="cljlib/?/init.fnl;$FENNEL_PATH" + LUA_PATH="cljlib/?/init.lua;$LUA_PATH" + +Or pass them via command line arguments: + + $ fennel --add-fennel-path "cljlib/?/init.fnl" --add-package-path "cljlib/?/init.lua" Now you can require `:cljlib` from Fennel: @@ -19,11 +28,6 @@ Now you can require `:cljlib` from Fennel: (import-macros cljm :cljlib) ``` -Make sure to set up the `FENNEL_PATH` and `LUA_PATH` to include the installation directory: - - FENNEL_PATH="cljlib/?/init.fnl;$FENNEL_PATH" - LUA_PATH="cljlib/?/init.lua;$LUA_PATH" - Alternatively, precompile the library to make it load slightly faster: $ cd cljlib; make |