Re:Rux: A JSX-inspired way to render view components in Ruby
by jack_riminton on Monday March 06, 2023 @03:09PM
(#35046880)
I wish the syntax was more like erb i.e. <%= %> instead of { } although I'm sure someone will explain to me why they can't!
[ Parent
| on HN ]
Re:Rux: A JSX-inspired way to render view components in Ruby
by __ryan__ on Monday March 06, 2023 @03:28PM
(#35047108)
I’m sure they could, I imagine they’re appealing to those who prefer JSX’s syntax.
Re:Rux: A JSX-inspired way to render view components in Ruby
by camertron 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
by jack_riminton on Thursday March 09, 2023 @06:24AM
(#35080239)
yeah doing a call_html_erb method would be fantastic