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.46k stars 65 forks source link

Move Kobweb hook code into the server #13

Closed bitspittle closed 2 years ago

bitspittle commented 2 years ago

For now, because it's easier to get up and running, version checking and status message code lives in MainTemplate.kt. Instead, it should be done by the server and not leak to users.

By not baking the logic in the templates, it also means we can be more flexible about server behavior in the future; maybe we'll significantly want to change what our live reloading stuff looks like

bitspittle commented 2 years ago

Obsolete. We now generate code differently based on debug target or release target.

It would have been cool to have the server do it and we can revisit it later, but it's muuuch easier to do things thing way.