emmett icon indicating copy to clipboard operation
emmett copied to clipboard

Migrate to web components

Open gi0baro opened this issue 4 years ago • 5 comments

Todo:

  • [ ] Pick frontend framework (vuejs?)
  • [ ] Drop jquery
  • [ ] Rewrite helpers
  • [ ] Rewrite forms

gi0baro avatar Jan 08 '20 00:01 gi0baro

@gi0baro Vuejs is fantastic. I use a quasar framework, built on vue https://quasar.dev/

josejachuf avatar Jan 08 '20 03:01 josejachuf

@josejachuf thank you for the hint! I'll take a look.

gi0baro avatar Jan 08 '20 17:01 gi0baro

Hey, I'm curious about this. I'd be happy to try and tackle/get it started too. Totally new/finding my bearings but I want to help make Emmett a real popular choice!

Specifically, I think a better replacement for jquery would be either https://alpinejs.dev or petite-vue. Might not be too big a change either to rig it up

Phamiliarize avatar Feb 19 '22 08:02 Phamiliarize

Hi @Phamiliarize I did not know Alpine.js. Looks great

josejachuf avatar Feb 19 '22 11:02 josejachuf

Hey, I'm curious about this. I'd be happy to try and tackle/get it started too. Totally new/finding my bearings but I want to help make Emmett a real popular choice!

Specifically, I think a better replacement for jquery would be either https://alpinejs.dev or petite-vue. Might not be too big a change either to rig it up

@Phamiliarize alpinejs sounds fine to me. Feel free to open up a PR for this even for experimenting. Stage 0 would be dropping jquery and rewrite helpers in plan javascript probably, where backward compatibility should be kept. The next stage would be rewriting forms code, where the complex part would be to keep the custom attribute support (see https://github.com/emmett-framework/emmett/blob/master/emmett/forms.py#L204).

Feel free to use this issue to ask questions/get more info :)

gi0baro avatar Feb 19 '22 12:02 gi0baro