https://kotlinlang.org logo
#scripting
Title
# scripting
d

Dmytro Serdiuk

02/29/2024, 12:19 PM
Hello! I saw “-script-templates” compiler option to define the template. But why I could define a list of templates, as only one definition could be used for customization? Thanks
i

ilya.chernikov

03/05/2024, 9:48 AM
There could be two scenarios, when multiple different scripts are compiled simultaneously. • when you compile scripts as/along regular sources, without using
-script
command line option. • when you importing scripts into one another Both situations are quite exotic and require sophisticated setup, so for the practical reasons you can consider it to accept a single definition/template.
d

Dmytro Serdiuk

03/05/2024, 10:04 AM
@ilya.chernikov , thank you for the answer!