You can now create HTML and CSS fragments in Kitten.
This introduces two new file extensions (.fragment.html and .fragment.css) and you can import these fragments into your pages and into other components and fragments as if they were JavaScript modules*.
HTML fragments also support slots.
Example:
https://codeberg.org/kitten/app/src/branch/main/examples/html-and-css-fragments
*Thanks to Kitten’s behind-the-scenes use of a custom ES Module Loader.
#Kitten #SmallWeb #web #dev #html #css #JavaScript #components #fragments #slots