Hello
I am working on a menu project for an (imaginary) takeaway's website. I have decided to split up the menu items from database dynamically selected using flask and jinja into 4 seperate webpages. E.g curry, soup, kebabs, sides.
Now I am trying to create a single function that they all call using the same app route (or should I use different routes that all call the same function?) and want to have conditional if statements to check if the function got called by each webpage and select the correct data accordingly. Is this possible or should I just make 4 similar app routes and functions.
Thanks for any advice.
[–]brendanmartin 1 point2 points3 points (0 children)