varabyte / kobweb

A modern framework for full stack web apps in Kotlin, built upon Compose HTML
https://kobweb.varabyte.com
Apache License 2.0
1.51k stars 66 forks source link

Allow kobweb libraries to specify html that get consumed by apps #260

Closed bitspittle closed 11 months ago

bitspittle commented 1 year ago

For example, someone is developing a bunch of bootstrap components, and they need

            head.add {
                script {
                    src = "https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js"
                }
                link {
                    rel = "stylesheet"
                    href = "https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css"
                }
            }

to end up in the user's final site.

Right now, they have to ask users to do this step manually. Instead, it might be nice to have a way for them to specify this at which point it will get automatically added at compile time of the app.

bitspittle commented 11 months ago

I added #329 when I should have updated this one. However, I added some useful notes in that one, so I'm closing this one and letting that one be the new representative bug.