c.im is one of the many independent Mastodon servers you can use to participate in the fediverse.
C.IM is a general, mainly English-speaking Mastodon instance.

Server stats:

2.8K
active users

#kitten

39 posts26 participants0 posts today

New Kitten update

🥳 Kitten HTML templates and kitten.Component render functions can now be async.

kitten.small-web.org

This is quite a big one and it took me finally biting the bullet and getting my head around generators in JavaScript to implement properly.

So now you can mix synchronous and asynchronous components as you like and if there are any asynchronous components in your templates they will automatically be awaited (even if you forget to use await) ;)

I’ll write a proper post/tutorial/documentation for it soon but for the time being enjoy the screenshots where a layout template gets the latest three posts from my mock fediverse public timeline service and displays them on the page.

The kitten.Component version also has a refresh button that streams a different three to the page.

For those of you unfamiliar with Kitten, this is all the code in either example. No scaffolding, nothing. Pop either into a file called index.page.js and run kitten in that folder and visit https://localhost to see the example run.

Enjoy!

:kitten:💕

Continued thread

Our team of world-class veterinary specialists is ready to do everything we can to give Kelly a future, but it’s been an intense couple of weeks with so many #animals needing our help, and we need your support more than ever. If you also believe that this tiny #kitten deserves a chance, please donate. Even a few dollars helps: mspca.org/pca 🐱 ❤️ #catsofmastodon #massachusetts #rescuecat #rescuecats #cat #cats #kittens

This is Kelly. She’s an 8 week old who plays, purrs and tries to explore like any other #kitten her age, but something inside of her body is very wrong. She has a congenital diaphragmatic hernia, a hole in her diaphragm that’s letting her abdominal organs push into her chest.

There’s a surgery we can do to fix this, but it’s risky given her age and tiny size. If we don’t do the surgery though, her condition is fatal 1/

so our cat leo turned out to be pregnant too AND SHE HAD KITTENS but she had them underneath the house except for one she left in the yard (????) and when my sister brought that one in and tried to put them in her room, leo was like 'NO' and decided that my den was the shelter space for this kitten

yes we need to get them a box or some other form of shelter for warmth, we KNOW. they were just born a few hours ago. #cat #kitten #CatsOfMastodon