3 ms·
I might do something like React JSX, maybe called ERX. I do think it opens up a hole though in doing business logic the wrong place. I know in Elixir it might b
by jtwebman 12y ago
I might do something like React JSX, maybe called ERX. I do think it opens up a hole though in doing business logic the wrong place. I know in Elixir it might be easy to do with the meta programming stuff.
- lucaspiller 12y agoThat should be pretty easy with parse transforms, here is an example for embedding JSON: https://github.com/happi/json-transform https://github.com/happi/json-transform As another comment suggests (https://news.ycombinator.com/item?id=9215580 https://news.ycombinator.com/item?id=9215580), this would allow you to keep everything as a data structure until the last minute. In regards to business logic, I think you just need to be strict when writing your application with the idea of what a 'view' is. Although React may seem like you are violating separation of concerns, in reality view logic and templates are already tightly coupled.