diff options
author | Ekaitz Zarraga <ekaitz@elenq.tech> | 2023-10-08 15:23:54 +0200 |
---|---|---|
committer | Ekaitz Zarraga <ekaitz@elenq.tech> | 2023-10-08 15:57:44 +0200 |
commit | dc7202a0338126cef3a756dc6761eb0c3885078e (patch) | |
tree | 9051e96870315307c5b8689d31b39a434475d0e5 /src/as.scm | |
parent | 959d4fd10f365bbb1cbba1de367544d519274b8e (diff) |
as; call-in-module instead of calling in interface
Calling in module let's the user write any scheme code they want inside
the template.
Diffstat (limited to 'src/as.scm')
-rw-r--r-- | src/as.scm | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -4,13 +4,13 @@ (define (call-in-module thunk module) (let* ((curmod (current-module)) - (_ (set-current-module (resolve-interface module))) + (_ (set-current-module (resolve-module module))) (v (thunk)) (_ (set-current-module curmod))) v)) -(define (load-with-interface path module-name) +(define (load-in-module path module-name) (call-in-module (lambda () (load path)) module-name)) (define (as what file) - (load-with-interface file `(src as ,what))) + (load-in-module file `(src as ,what))) |