← All cookies
🍪

Chocolate chip

The classic. Crisp edges, soft middle, and more chips than strictly necessary <3

⏱ 25 minutes 🍪 makes 24 Easy

Ingredients (8)
  • butter, softened225 g
  • brown sugar150 g
  • white sugar100 g
  • eggs2
  • vanilla extract1 tsp
  • plain flour300 g
  • baking soda1 tsp
  • chocolate chips300 g
Method (6 steps)
  1. Heat the oven to 180°C and line two trays.
  2. Beat the butter with both sugars until pale and fluffy.
  3. Beat in the eggs one at a time, then the vanilla.
  4. Fold in the flour and baking soda, then the chocolate chips.
  5. Drop tablespoons of dough onto the trays, well apart.
  6. Bake for 10 to 12 minutes until the edges are golden. Cool on the tray.
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.