camertron
Re:Rux: A JSX-inspired way to render view components in Ruby
on Wednesday March 08, 2023 @01:40PM (#35073009)
You might want to take a look at Phlex, which essentially has the same syntax: https://github.com/joeldrapper/phlex
Re:Rux: A JSX-inspired way to render view components in Ruby
on Wednesday March 08, 2023 @01:39PM (#35072983)
Yeah that's right, I was trying to simulate JSX syntax. I'm not against ERB syntax tho, maybe the lib could eventually support both?
Re:Rux: A JSX-inspired way to render view components in Ruby
on Wednesday March 08, 2023 @01:38PM (#35072963)
There's a VSCode extension for highlighting rux (Ruby + HTML): https://marketplace.visualstudio.com/items?itemName=camertro...
Re:Rux: A JSX-inspired way to render view components in Ruby
on Wednesday March 08, 2023 @01:36PM (#35072936)
No, rux doesn't support HAML, since HAML is an entirely different "language" than rux. You'd have to figure out how to identify HAML embedded in Ruby and parse it with the HAML parser. Entirely possible, but not something rux will (probably) ever do.
Re:Rux: A JSX-inspired way to render view components in Ruby
on Wednesday March 08, 2023 @01:12PM (#35072575)
We use it extensively at GitHub and consider it very stable.