Hey, I'm creating a library to with a few extensio...
# ktor
a
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
What your library is about?
a
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 :)
Also, if I define them in commonMain, they are aviable on the others too, right?
a
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?
Yes.
a
Okay, thank you