scittle 2023-03-24

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?

@tim988 Hi! Yes, you can just say:

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

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

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

in separate script tags

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

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

as long as you specify the the loading order correctly

So I have to define the namespace in every file?

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

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

❤️ 1