bahrus / xodus

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

xodus [WIP]

xodus transforms HTML as it leaves the server and travels to the promised land of the end user's browser.

It is used to add dynamic content to declarative web components, defined as HTML, served via text/html and/or text/plain mime type, accessible via a CDN url. Many important, useful web components consist of 99% HTML / CSS / JSON, 1% JavaScript. But strategically weaving in dynamic content into the web component before it arrives in the browser can provide a more satisfying initial view.

Flow

xodus accomplishes this by providing helper classes that build on CloudFlare's HTMLRewriter.

Hopefully native browser service workers will support something similar eventually, which would allow weaving in data held in local storage, for example.

Its syntax is specific (but extendable) for components that use the may-it-be family of element behaviors/decorators to achieve binding, beginning with be-definitive.

Name inspired by this funny comment.

Usefulness of this project should grow if, W3C willing, something like templ-mount is built into the platform.

ezoic increase your site revenue

About

License:MIT License


Languages

Language:TypeScript 51.3%Language:JavaScript 48.7%