Hey, I'm creating a library to with a few extensions functions to use htmx in KTor.
1) Should I ship the extensions for kotlinx-html seperate from those for KTor in case someone wants to use them with say http4k or all together in one and 2) should I have it as a thing you import or an KTor plugin (I'm guessing import, but asking just in case. It's my first time create a Kotlin Library :))
Note: For KTor specifically it's only one extenion function atm
a
Aleksei Tirman [JB]
08/23/2023, 5:53 AM
What your library is about?
a
adambrangenberg
08/23/2023, 1:52 PM
As I said, it's adding support for HTMX (https://htmx.org/) so that you won't need to add all the attributes yourself and write the extension function to send HTML snippets (for ktor). It's nothing major but probably useful nonetheless :)
adambrangenberg
08/23/2023, 1:58 PM
Also, if I define them in commonMain, they are aviable on the others too, right?
a
Aleksei Tirman [JB]
08/23/2023, 3:15 PM
1. I would ship them separately.
2. I think you don't need a plugin.
Also, if I define them in commonMain, they are aviable on the others too, right?