Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A components framework based on <template> #1077

Open
yuval-a opened this issue Oct 14, 2024 · 0 comments
Open

A components framework based on <template> #1077

yuval-a opened this issue Oct 14, 2024 · 0 comments

Comments

@yuval-a
Copy link

yuval-a commented Oct 14, 2024

I recently released a framework I’ve been working on - that implements a lot of what is described in this proposal (which I only encountered just now)

https://github.com/yuval-a/Sprout

Mine has a “development environment” and a “compiler script”
But the “compiled version” does use elements to encapsulate components logic.

The framework rely on what it calls “State Attributes” - attributes on elements inside the component template with values starting with a $ - the runtime creates a binding between the attribute node values of a “rendered” component elements and the values in a State object thus enabling “state management” and “reactivity”

A “rendered” element is a custom element, and the runtime logic is a “ReactiveElement” class that extends HTMLElement classes - adding and handling those features.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant