Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thepassle/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.
https://github.com/thepassle/swtl
Last synced: 13 days ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/thepassle/swtl
- Owner: thepassle
- Created: 2023-08-07T13:01:13.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-04T21:49:59.000Z (7 months ago)
- Last Synced: 2024-10-23T15:42:57.516Z (21 days ago)
- Language: JavaScript
- Homepage:
- Size: 177 KB
- Stars: 203
- Watchers: 2
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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. Also supports SSR/SWSRing custom elements, with a pluggable custom element renderer system.
Runs in Service Workers, but can also be used in Node, or other server-side JS environments.
## Packages
- [`swtl`](./packages/core) - Service Worker Templating Language
- [`@swtl/lit`](./packages/lit) - Custom Element Renderer to SSR/SWSR LitElements