GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Conversation

Notices

  1. Embed this notice
    Aral Balkan (aral@mastodon.ar.al)'s status on Tuesday, 01-Apr-2025 05:00:03 JST Aral Balkan Aral Balkan

    New Kitten update

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

    https://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:💕

    #Kitten #SmallWeb #async #components #templates #HTML #CSS #JavaScript #NodeJS #generators #web #dev

    In conversation about 3 months ago from mastodon.ar.al permalink

    Attachments




    1. https://s3-eu-central-1.amazonaws.com/mastodon-aral/media_attachments/files/114/258/812/670/834/838/original/228733ad125b57f4.png

    2. https://s3-eu-central-1.amazonaws.com/mastodon-aral/media_attachments/files/114/258/813/076/463/648/original/22f714259e01b4f8.png

    3. https://s3-eu-central-1.amazonaws.com/mastodon-aral/media_attachments/files/114/258/813/391/227/659/original/f082b60a6e889431.png
    • Embed this notice
      Aral Balkan (aral@mastodon.ar.al)'s status on Tuesday, 01-Apr-2025 05:34:29 JST Aral Balkan Aral Balkan
      in reply to
      • David O'Brien

      @iamdavidobrien Thanks, David :)

      In conversation about 3 months ago permalink
    • Embed this notice
      David O'Brien (iamdavidobrien@mastodon.social)'s status on Tuesday, 01-Apr-2025 05:34:30 JST David O'Brien David O'Brien
      in reply to

      Nice one.

      @aral

      In conversation about 3 months ago permalink
    • Embed this notice
      Aral Balkan (aral@mastodon.ar.al)'s status on Tuesday, 01-Apr-2025 19:05:11 JST Aral Balkan Aral Balkan
      in reply to
      • Anna

      @netzhexe Cool; please let me know what you think and, especially, if anything confuses you as you’re trying to get started. There’s still so much work I have to do on the documentation, tutorials, etc.., and it’s changing so fast (hopefully slower, now) that it’s hard to keep up sometimes (especially since the goal is to use it to finish building Domain and Place and launch them this year.

      PS. I find there are always new bullets to bite. But I’m almost alwasys happier for it down the line :)

      In conversation about 3 months ago permalink

      Attachments


    • Embed this notice
      Anna (netzhexe@chaos.social)'s status on Tuesday, 01-Apr-2025 19:05:12 JST Anna Anna
      in reply to

      @aral looks really neat! I'll take a closer look once I'm back to work at my desktop pc and not drowning in emails any more. I especially like the fact that I'm apparently not the only one who doesn't have all of javascript figured out and occasionally has to bite some bullets before progress can be made 😄 (I'm currently at this point again.)

      In conversation about 3 months ago permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.