Re:Rux: A JSX-inspired way to render view components in Ruby
by compumike on Monday March 06, 2023 @04:32PM
(#35047930)
Does this support HAML-style syntax? We're 100% HAML-only for templating, whether normal Rails views or ViewComponent... https://github.com/haml/haml https://haml.info/ so going back to writing HTML or ERB feels like a huge downgrade.
[ Parent
| on HN ]
Re:Rux: A JSX-inspired way to render view components in Ruby
by camertron 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.