Re:Rux: A JSX-inspired way to render view components in Ruby
by xanderatallah on Monday March 06, 2023 @03:33PM
(#35047175)
Does something like this exist for python?
[ Parent
| on HN ]
Re:Rux: A JSX-inspired way to render view components in Ruby
by ivoflipse on Tuesday March 07, 2023 @02:33AM
(#35052611)
You could implement a HTML renderer with Collagraph (https://github.com/fork-tongue/collagraph).
From the README: Write your Python interfaces in a declarative manner with plain render functions, component classes or even single-file components using Vue-like syntax, but with Python!
- Reactivity (made possible by leveraging observ)
- Function components
- Class components with local state and life-cycle methods/hooks
- Single-file components with Vue-like syntax (.cgx files)
- Custom renderers