Live data from Hacker News

Rux: A JSX-inspired way to render view components in Ruby

github.com

41–42 of 42 posts

Re: Rux: A JSX-inspired way to render view components in Ruby

#41

The html inside the call method looks cool but I have hard time understanding to how the syntax highlighting would react to seeing html inside the ruby code? Would it highlight it correctly?

There's a VSCode extension for highlighting rux (Ruby + HTML): https://marketplace.visualstudio.com/items?itemName=camertro...

Thx

Re: Rux: A JSX-inspired way to render view components in Ruby

#42

Earlier quoted context omitted.

I’m sure they could, I imagine they’re appealing to those who prefer JSX’s syntax.

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?

yeah doing a call_html_erb method would be fantastic
Post reply on HN