Fork me on GitHub
#scittle
<
2023-03-24
>
DerTev15:03:37

Hey! I have two questions about scittle. 1. Is there a way to split scittle-code into multiple files and import them from each other? 2. How far is scittle production ready?

borkdude15:03:11

@U03EXAURGUC Hi! Yes, you can just say:

<script type="application/x-scittle" src="file.cljs">
And I consider scittle production ready

borkdude15:03:54

ah import them from each other, no this isn't possible

borkdude15:03:05

you need to specify the files in the order that they should be loaded in

borkdude15:03:11

in separate script tags

DerTev15:03:49

And how can I use the vars from the files then?

borkdude15:03:02

You can still use (:require ...) etc

borkdude15:03:15

as long as you specify the the loading order correctly

DerTev15:03:27

So I have to define the namespace in every file?

borkdude15:03:47

yes, or if you don't want to use namespaces, you don't have to, then everything will be defined in the user namespace

DerTev15:03:00

Ok, thanks!#

DerTev15:03:40

You make a great job with the library, many thanks!

❤️ 2