← All cookies
🥣

Oatmeal raisin

Chewy and a little wholesome, so you can have a second one.

⏱ 30 minutes 🍪 makes 18 Easy

Ingredients (7)
  • butter, softened170 g
  • brown sugar200 g
  • eggs2
  • plain flour180 g
  • cinnamon1 tsp
  • rolled oats250 g
  • raisins150 g
Method (5 steps)
  1. Heat the oven to 180°C and line two trays.
  2. Cream the butter and sugar, then beat in the eggs.
  3. Stir in the flour and cinnamon, then the oats and raisins.
  4. Scoop onto the trays and flatten slightly.
  5. Bake for 12 to 14 minutes. They firm up as they cool.
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.