scittle

DerTev 2023-03-24T15:34:37.894979Z

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?

borkdude 2023-03-24T15:39:11.164259Z

@tim988 Hi! Yes, you can just say:

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

borkdude 2023-03-24T15:39:54.970569Z

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

borkdude 2023-03-24T15:40:05.105229Z

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

borkdude 2023-03-24T15:40:11.516709Z

in separate script tags

DerTev 2023-03-24T15:45:49.645049Z

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

borkdude 2023-03-24T15:46:02.692169Z

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

borkdude 2023-03-24T15:46:15.755259Z

as long as you specify the the loading order correctly

DerTev 2023-03-24T15:46:27.159059Z

So I have to define the namespace in every file?

borkdude 2023-03-24T15:46:47.318719Z

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

DerTev 2023-03-24T15:47:00.996269Z

Ok, thanks!#

DerTev 2023-03-24T15:47:40.392159Z

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

❤️ 1