diff options
| author | Andrey Listopadov <andreyorst@gmail.com> | 2022-03-27 13:26:18 +0000 |
|---|---|---|
| committer | Andrey Listopadov <andreyorst@gmail.com> | 2022-03-27 13:26:18 +0000 |
| commit | 60e091c0379950a5851d74a01a8c264c6ccbf3c2 (patch) | |
| tree | 72a8f4b41b0f7a11fa7bc70e29e643f8a6d8d664 | |
| parent | 72b932cf679f18dc4cfb1a4a6893cc6d68e37fc9 (diff) | |
| parent | 89dc4f174b1184367f1a14b8238cef17fd09e878 (diff) | |
Merge branch 'relative-require-shenanigans' into 'master'
fix #4: make relative require work when setting fennel.macro-path
Closes #4
See merge request andreyorst/fennel-cljlib!14
| -rw-r--r-- | init.fnl | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -54,7 +54,10 @@ non-ASCII strings."}) (import-macros {: defn : into : empty : when-let : if-let : when-some : if-some} - (if (and ... (not= ... :init)) (.. ... :.init-macros) :init-macros)) + ;; tricky relative require to make it work from + ;; anywhere as (require :cljlib) and as well + ;; (import-macros cljm :cljlib) + (if ... (if (= ... :init) :init-macros ...) :init-macros)) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Utility functions ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |