I decided to set up a Discord for my OSS projects. Come join me if you want to get involved with #Phlex, Literal, GreenDots. https://discord.gg/CN5JYpxJUE
For folks using #phlex, does anyone using Phlex for components but still use plain ERB for their main views?
Thinking of trying this approach on a project for some Tailwind UI components.
My Phlex talk at the Cleveland Ruby meetup last night went great!
Amazingly I just about hit my target time of 30 minutes. I found a rough spot in the talk to smooth out, and I’m looking forward to sharing it at Columbus Ruby on Monday!
Working on the Phlex talk I'm giving this upcoming week, and I'm up to 30 slides and a short live coding segment and also a walkthrough-code-in-an-editor.
I will have to practice it the next couple days to find out if I can fit this into 30 minutes. 😓 I might have to trim some stuff.
Ever since using the elegance and simplicity of #Phlex I have been wondering, if I can't reach some of that expressiveness with #ViewComponent : https://rstuder.ch/2023-calling-view-component-instance-methods/
@joeldrapper Is there any reason to leave Phlex::Translation aside? I can't find anything about it on Phlex website.
I got this error when I was using `helpers.t(".some_key")` on a new project. So I had to install phlex-translation gem and include Phlex::Translation module. And #t method alias is missing too 😭 .
That series is incredible, can't wait for the next post! #rails #phlex
https://fly.io/ruby-dispatch/hacking-rails-implicit-rendering-for-view-components/
If I do say so myself, I think this interface is pretty neat for conditional HTML attribute tokens (e.g. HTML classes) in Ruby. #phlex
I just released phlex-rails 1.0. We’ve been running it in production at Clearscope (with about 245 components) for a number of months now and I think it’s ready. #phlex
I recently joined @DRBragg on Code and the Coding Coders who Code it to discuss upcoming streaming features in #Phlex. This is one of my favourite podcasts — please consider subscribing. Drew has done some amazing interviews over the last few months. https://overcast.fm/+3Nc3Zh0kU
Fly published an article on component-driven Rails development with #Phlex https://fly.io/ruby-dispatch/component-driven-development-on-rails-with-phlex/
@joeldrapper Could a step be missing from the #phlex installation documented at https://www.phlex.fun/rails/ ? It breaks for me when I try to run 'bin/rails generate phlex:install' ... I get the error message 'Could not find generator 'phlex:install'. Maybe you meant "rspec:install"?'
Experimenting more with #Phlex, since I will be using it at work soon, and the more I use it, the more I like it. What is really interesting to me is not just the ability to write HTML in Ruby — which is cool by itself — but that it's such a good base to potentially build higher level abstractions on top of.
Finally checking out #Phlex ! I started with a simple NavButton component. Pairing it with the ActiveModel API works really nice.
I think replacing your view code “inside-out" is the way to go, ie. starting as small as you can, and gradually working out to larger partials and views.
I also don't suppose you can use phlex with sinatra? Trying to benchmark various templating engines.
#phlex
@joeldrapper It's reassuring to know that the migration to #Phlex can be gradual. I have a couple of user interfaces that I might port over to it.