All menu items are defined as a Python list of dictionaries namedDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/EduCabrera-k/Menu_Hamburguesas/llms.txt
Use this file to discover all available pages before exploring further.
menu_items in app.py. The list is loaded once when the Flask server starts and passed to every page that renders the menu. To add, remove, or edit items, you modify this list directly and restart the server.
Menu item structure
Each entry inmenu_items is a dictionary with the following fields:
Unique numeric identifier for the item. Used as the cart key and as the lookup key in
inventario_stock. Duplicate IDs break cart behavior and inventory toggling.Display name shown on the menu card and in order summaries.
Price in Mexican pesos (MXN). Displayed as-is — no currency conversion is applied.
Short description shown below the item name on the menu card.
Category the item belongs to. Controls which section the item appears in and which filter button activates it. Current values in use:
"hamburguesas", "bebidas", "desayunos".Image source. Either a full
https:// URL or a local filename relative to static/img/. Set to an empty string "" to display a grey placeholder.Adding a new menu item
Append a new dictionary tomenu_items in app.py. Choose an id that is not already used by any existing item.
How images are resolved
The template inindex.html applies the following logic when rendering each item’s image:
Check if imagen starts with 'http'
If the value starts with
http, it is used directly as the src attribute of the <img> tag. Use this for externally hosted images.Check if imagen is a local filename
If the value is a plain filename (no protocol prefix), the template constructs the path using Flask’s Place the file in
url_for:static/img/ before referencing it:Categories
The menu displays one category at a time. A row of buttons at the top of the page lets users switch between categories. The available buttons are generated from the distinctcategoria values found in menu_items.
Adding an item with a new
categoria value — for example, "postres" — automatically creates a new filter button and section for that category. No other configuration is required.Removing a menu item
Delete the dictionary for the item frommenu_items and restart the server. Any documents in the inventario_stock MongoDB collection for that item’s id will remain in the database but have no effect, since the item no longer exists in the menu list.
Current menu reference
The table below lists all 26 items currently defined inapp.py.
| ID | Nombre | Precio | Categoría |
|---|---|---|---|
| 1 | Tradicional | $75 | hamburguesas |
| 2 | Tradicional Doble | $120 | hamburguesas |
| 3 | Arrachera | $100 | hamburguesas |
| 4 | Crunchy | $95 | hamburguesas |
| 5 | Crunchy Doble | $140 | hamburguesas |
| 6 | Crunchy BBQ | $105 | hamburguesas |
| 7 | Crunchy Búfalo | $105 | hamburguesas |
| 8 | Ranchera | $140 | hamburguesas |
| 9 | Suprema | $130 | hamburguesas |
| 10 | Magnum | $160 | hamburguesas |
| 11 | Orden de Papas | $50 | hamburguesas |
| 12 | Coca Cola 600ml | $20 | bebidas |
| 13 | Coca Cola 1 Litro | $30 | bebidas |
| 14 | Jamaica Avia | $20 | bebidas |
| 15 | Té Reca | $20 | bebidas |
| 16 | Horchata Avia | $20 | bebidas |
| 17 | Limonada Avia | $20 | bebidas |
| 18 | Naranjada Avia | $25 | bebidas |
| 19 | Tranca de Pierna | $45 | desayunos |
| 20 | Orden 3 Hot Cakes | $45 | desayunos |
| 21 | Hot Dog | $20 | desayunos |
| 22 | Tranca de Pollo | $45 | desayunos |
| 23 | Trancas de Tender | $45 | desayunos |
| 24 | Orden de 3 Burritas | $30 | desayunos |
| 25 | Orden de 4 Flautas | $45 | desayunos |
| 26 | Tostadas de Pollo | $20 | desayunos |