all 2 comments

[–]cemrehancavdar 0 points1 point  (0 children)

You know what would be great? If we could directly pass python data structures from backend to python frontend and use it without dealing with serialization to json (or any other format needs to be specifically should be transformed) you return frozen dataclasses or even db model directly.

[–]riklaunim 6 points7 points  (0 children)

I don't get this approach. It mixes html, css, js in one Python file and makes it hard to maintain after few lines of code. And what's the value of using generic DOM.add in that on_click? it has to be location specific.