Replies: 1 comment
-
I talked briefly about our experience using Phlex comparing it to our previous use of View Components at Lrug couple of days back :) Will post the video once they chop them up .. we'll see how well I've represented Phlex. Would be cool @joeldrapper if you come down to London to talk about it in full format and with lots more detail 🙂 .. and excuse your name forgetting .. not everything can go according to plan 🙂 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey, just wanted to give a big shout out to @joeldrapper for coming up with Phlex! I'm having so much fun writing template code!
I'm converting all of my
slim
templates to erb with github copilot, then through https://www.phlexing.fun/ as classes which I inline into my controllers! Over are the days of organising erb partials or wondering if I should create a component ... "is it worth creating 2 more files to place somewhere in a far part of my project?".Now, I can easily work with just a single file (the controller), even if it's 1000+ lines long as I get instant symbol navigation through my editor! Organise with classes, sub-classes, methods, private methods. It's all so easy! The mental difference is of not juggling between files 10s of files that need at the same time is huge!
I have also started switching to Alpine from Stimulus - inline it all 😃
Well, well done! Hopefully you get to present your project at a Ruby conf, maybe start with LRUG in London (as you're UK based?) (if not, I'm thinking of prepping something).
Beta Was this translation helpful? Give feedback.
All reactions