jensljungblad / elemental_components

Simple view components for Rails 5.1+
MIT License
76 stars 5 forks source link

Webpacker support? #50

Open topherfangio opened 3 years ago

topherfangio commented 3 years ago

I see you've made some updates recently! That's awesome!

Unfortunately the project I was on got scrapped so even though we heavily used Elemental and ViewComponent, we're not using it anymore.

I have another project I wanted to play with, but wanted to start with a fresh Rails 6 install which uses Webpacker by default.

Have you gotten it working with Webpacker instead of Sprockets?

jensljungblad commented 3 years ago

@topherfangio I never tried that! Did you get it working?

topherfangio commented 3 years ago

@jensljungblad Unfortunately no, I wound up just using the Sprokets pipeline to get it working and play with it.

Also, I started re-investigating ViewComponent and it looks like they have made some updates to allow for very similar things to Elemental Components.

I still really love the simplicity of the DSL you've created, but if ViewComponent is more mainstream and offers roughly the same features, I'll probably go with that.

jensljungblad commented 3 years ago

I still really love the simplicity of the DSL you've created, but if ViewComponent is more mainstream and offers roughly the same features, I'll probably go with that.

Thanks! Very understandable. I think ViewComponent has moved to a similar DSL if I remember correctly, hopefully it will be as nice to use!