Re:Show HN: Lona – Framework for responsive web apps in full...
by kiesel3rde on Wednesday August 11, 2021 @01:06PM
(#28144700)
In my experience scattering an application over python and javascript ends in very messy code most of the time.
[ Parent
| on HN ]
Re:Show HN: Lona – Framework for responsive web apps in full...
by kissgyorgy on Wednesday August 11, 2021 @01:37PM
(#28145092)
Here are some snippets from our legacy codebase, where the exact same method is used (Django Crispy Forms):
https://walkman.cloud/s/TWmtNMjMM3ZfdZM
This is NOT the right solution to the problem you mentioned. If developers don't know what they are doing, they can leave an even bigger mess with this.
Re:Show HN: Lona – Framework for responsive web apps in full...
by kiesel3rde on Wednesday August 11, 2021 @01:43PM
(#28145178)
No approach is right for every problem. For the applications i develop for work this python only approach really cleaned up the code.
Lona can encapsulate html and its functionality into widgets (https://lona-web.org/end-user-documentation/html.html#widget...). The most views then just use a few abstract widgets and maybe around 10 html nodes