swtl

A Service Worker Templating Language (swtl) for component-like templating in service workers. Streams templates to the browser as they're being parsed, and handles rendering iterables/Responses in templates by default. (by thepassle)

Swtl Alternatives

Similar projects and alternatives to swtl

  • astro

    506 swtl VS astro

    The web framework for content-driven websites. ⭐️ Star to support our work!

  • caniuse

    393 swtl VS caniuse

    Raw browser/feature support data from caniuse.com

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • lit

    143 swtl VS lit

    Lit is a simple library for building fast, lightweight web components.

  • htm

    42 swtl VS htm

    Hyperscript Tagged Markup: JSX alternative using standard tagged templates, with compiler support.

  • h-include

    Declarative client-side inclusion for the Web, using Custom Elements V1

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better swtl alternative or higher similarity.

swtl reviews and mentions

Posts with mentions or reviews of swtl. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-03-01.
  • Streaming HTML out of order without JavaScript
    5 projects | news.ycombinator.com | 1 Mar 2024
    Fun stuff!

    The underlying `swtl` library is itself pretty interesting.

    Note the use of `delayed(...)` in the blog's example code: that's a promise. In a tagged template.

    SWTL's `html` allows for this (I think the blog's example follows the simple case here https://github.com/thepassle/swtl/blob/main/html.js#L23). And SWTL's `render` method races the promises (https://github.com/thepassle/swtl/blob/main/render.js#L120) outward.

  • Service Worker Templating Language (SWTL)
    4 projects | dev.to | 19 Aug 2023
    While I was able to achieve this fairly easily, the developer experience of manually stitching strings together wasnt great. Being myself a fan of buildless libraries, such as htm and lit-html, I figured I'd try to take a stab at implementing a DSL for component-like templating in Service Workers myself, called Service Worker Templating Language (SWTL), here's what it looks like:

Stats

Basic swtl repo stats
2
191
8.4
about 1 month ago

The primary programming language of swtl is JavaScript.

Popular Comparisons


Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com