correct way to build an SPA #283
-
Really enjoying using justpy. It is fantastic and great to see so much effort gone into the docs. Trying to build a simple SPA as a front end to a bunch of scripts we are using and justpy is perfect. I'm wondering how you would recommend laying out my code to achieve this. A minimal example would be
How should I bulid this in justpy? At present I have a webpage (global variable) which various functions modify.
Or am I better off with a sequence of pages and redirects? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Thanks for using JustPy! One of the advantages of an SPA is that only the content that a user needs is changed without needing the whole page to be loaded. The first approach will give you that benefit and may be preferable. That is the approach I use when I just want to update some content on a page based on user input. |
Beta Was this translation helpful? Give feedback.
Thanks for using JustPy!
One of the advantages of an SPA is that only the content that a user needs is changed without needing the whole page to be loaded. The first approach will give you that benefit and may be preferable. That is the approach I use when I just want to update some content on a page based on user input.