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

Create utility to easily manipulate DOM #92

Open
andreyluiz opened this issue Dec 29, 2019 · 2 comments
Open

Create utility to easily manipulate DOM #92

andreyluiz opened this issue Dec 29, 2019 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@andreyluiz
Copy link
Contributor

andreyluiz commented Dec 29, 2019

Is your feature request related to a problem? Please describe.
With pure Clio it is somewhat too imperative to manipulate DOM in the browser.

Describe the solution you'd like
Clio is a pure functional language. So we need a pure functional way to manipulate DOM.

Describe alternatives you've considered
We need to create a library to provide to the developer functions to easily manipulate DOM.

Additional context
@garritfra posted this snippet on our Telegram channel:
photo5203975761487309662
Personally I like it. Really like it. We could follow this to get started.

@andreyluiz andreyluiz added enhancement New feature or request good first issue Good for newcomers labels Dec 29, 2019
@garritfra
Copy link
Member

Unfortunately, we cannot add decorators to pipes. We have settled on binding dom elements somehow like this:

".foo" -> bind => foo
"#bar" -> query => bar

But theres still room for discussion

@NilayPatel10721
Copy link

hi @andreyluiz I would like to take up this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants