Search
Items tagged with: NodeJS
New Kitten feature: Icons!
You can now make use of a subset of the icons in the Phosphor icons set by @minoraxis and @rektdeckard.
kitten.small-web.org/reference…
Search through them in your editor by referencing `kitten.icons.categories` and `kitten.icons.tags`.
Add this to a file called index.page.js and run `kitten` to see a large duotone pink cat (because why not?):
export default function () {
return kitten.html`
<${kitten.icons.c.Cat}
size=40%
weight=duotone
colour=deeppink
/>
`
}
(And yes, the set includes icons for the fediverse. This one of the reasons I chose it.) ;)
Enjoy!
💕
#Kitten #SmallWeb #SmallTech #icons #PhosphorIcons #web #dev #HTML #CSS #JavaScript #SVG #NodeJS #authoring #intellisense
New Kitten release
• Socket routes now have precendence in the router.
This stops wildcard page routes from capturing the default socket routes that Kitten creates to enable the Streaming HTML workflow.
e.g., Previously, the following route:
/videos/index_[slug].page.js
Could not connect to its default socket (/videos/default.socket) because default.socket would be captured by the [slug] parameter.
Now, it will work as intended as the /videos/default.socket (a socket route) has precendence over index_[slug].page.js (a page route).
Learn more about Kitten’s Streaming HTML workflow here:
kitten.small-web.org/tutorials…
Enjoy!
💕
#Kitten #SmallWeb #SmallTech #StreamingHTML #routing #NodeJS #web #dev #JavaScript #JS