🥜
Peanut butter
Rich, crumbly, and pressed with a fork the way your grandmother's were.
⏱ 40 minutes 🍪 makes 20 Medium
Ingredients (7)
- butter, softened125 g
- peanut butter250 g
- brown sugar200 g
- egg1
- plain flour190 g
- baking powder1 tsp
- salta pinch
Method (6 steps)
- Heat the oven to 180°C and line two trays.
- Beat the butter, peanut butter and sugar together until smooth.
- Beat in the egg.
- Mix in the flour, baking powder and salt to make a stiff dough.
- Roll into balls, place on the trays, and press each with a fork twice to make a cross.
- Bake for 12 minutes. Let them cool completely before moving, they are fragile when warm.
How this page talks to the database
open database "cookies.db" set chosen to query "id" set recipes to ask database "select * from recipes where id = ?" with chosen set ingredients to ask database "select amount, item from ingredients where recipe_id = ?" with chosen set recipe to first of recipes show "<h1>[name of recipe]</h1>" for each ingredient in ingredients show "<li>[amount of ingredient] [item of ingredient]</li>" end
Values after with are sent to the database separately from the SQL, so a visitor cannot inject SQL through the URL. Text from the database is made safe before it is shown. The same page as a standalone file is in examples/cookies.