| Post Reply | RetroFed Forum Forum Index » Perchance - Create a Random Text Generator |
| Author | Message | ||
|---|---|---|---|
|
iglais
lemmy.world
iglais@lemmy.world Joined: 2025-12-29 |
is there a way to break up a perchance generator into multiple separate smaller generators and use import to combine them into the parent generator? when i've tried this, the imports consistently fail, so i'm not sure what is happening. this generator has become extremely large and difficult to edit due to the size in a SFA (nearly 38k lines of code). thanks, |
||
| 5 Original | |||
Qinerous
lemmy.world
qinerous@lemmy.worldJoined: 2025-06-20 |
Oh, there's really a lot of code here You can define functions/classes/variables in different pages, then simply import them into the main page. you can use This Or if you want several pages, then you can still import them in a similar way:
and in html code panel:
|
||
| 4 | |||
|
iglais
lemmy.world
iglais@lemmy.world Joined: 2025-12-29 |
Oh, there's really a lot of code here You can define functions/classes/variables in different pages, then simply import them into the main page. you can use This Or if you want several pages, then you can still import them in a similar way: ld1 = {import:load-q} and in html code panel: <script> [ld1()] </script> ::: spoiler • Additional :::
thank you. i'm just trying to figure this all out. |
||
| 2 | |||
| Post Reply |
Back to top |