:spider_web: Latest Kobweb v0.16.0 :spider_web: <h...
# kobweb
d
🕸️ Latest Kobweb v0.16.0 🕸️ https://github.com/varabyte/kobweb/releases/tag/v0.16.0 This release has a little bit of everything, so I'll let the release notes speak for themselves. The biggest change is that the algorithm for generating routes is now smarter about multi-words, creating hyphenated output now. (e.g.
ExamplePage.kt
now generates
example-page
instead of
examplepage
). Hyphens are actually encouraged by Google for SEO, so I apologize it took me so long to even notice that my defaults were wrong here! Fortunately, most pages in most sites are single words, and Kobweb provides rich route overriding support, so I imagine most people who cared have worked around this already. Changing route generation logic was easy -- making sure we didn't break old sites was hard! We added a detailed README section so you can read more about our approach to navigating this situation here. Despite the foundational change, updating to this version should hopefully be fairly painless. Of course, if you run into any issues, please reply to this thread.
👍 3
😍 1
@Ayfri this new change contains the
markdown.process
callback discussed in https://github.com/varabyte/kobweb/issues/375 If you try using it yourself for your own use-case, let me know if it falls short for what you need.
a
Nice work ! I'll try to update my portfolio as soon as I can !
🤞 1
Are you really sure that
filenameToSlug
exists ?
I don't see it in the sources 🤔
d
Shoot stale comment. I thought I axed all of those. filenameToSlug is gone because we decided instead to update how Kobweb generates links.
Unfortunately we can't easily support arbitrary logic there because ksp ultimately generates the final routes, and we can't pass a lambda to ksp. We just had to choose a great default and leave everything else up to route overrides
a
I see, maybe you should update this comment then !
d
Yeah definitely
Added a note to do exactly that
👍 1