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

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

Embed Notice

HTML Code

Corresponding Notice

  1. Embed this notice
    Aral Balkan (aral@mastodon.ar.al)'s status on Wednesday, 22-Jan-2025 20:06:22 JSTAral BalkanAral Balkan
    in reply to

    So last night, while recording the preview of Kitten’s¹ improved component model², I made a silly mistake (copying raw HTML into a JavaScript function instead of wrapping it in a kitten.html`` tagged template, easy to do when you’re refactoring to pull out components from pages).

    Then, once I figured out what I’d done, I made another one by forgetting to return the value from the function (easy to do when you’re used to using one-line closures as render functions).

    I would have caught both of those so much faster if Kitten had helpful error messages for those two pitfalls. And guess what, this morning, it does :)

    Attached are screenshot showing the before and after error messages.

    Enjoy!

    :kitten:💕

    ¹ https://kitten.small-web.org
    ² Scroll up the thread to watch the video.

    #Kitten #SmallWeb #PeerToPeerWeb #web #server #framework #platform #design #usability #errorMessages #authoring #dev #JavaScript #HTML #CSS #htmx #hypermedia #WebSocket #StreamingHTML #SmallTech

    In conversationabout 4 months ago from mastodon.ar.alpermalink

    Attachments



    1. https://s3-eu-central-1.amazonaws.com/mastodon-aral/media_attachments/files/113/871/660/931/071/567/original/c491ea5f071b2aa1.png

    2. https://s3-eu-central-1.amazonaws.com/mastodon-aral/media_attachments/files/113/871/665/803/469/776/original/b8b240204c08abd6.png

    3. https://s3-eu-central-1.amazonaws.com/mastodon-aral/media_attachments/files/113/871/671/171/833/538/original/5089824c084db1a9.png

    4. https://s3-eu-central-1.amazonaws.com/mastodon-aral/media_attachments/files/113/871/676/627/536/691/original/335ac6f5af5c05d0.png
  • 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.