The Pollen Cookbook

How to Design Pollen Markup

A layman’s attempt at applying the How to Design Programs design recipe to programming in Pollen:

  1. Think about and decide what kinds of things will be in your book, given your subject matter. Decide how you would like to mark these things up in your Pollen source.
  2. For each thing, find or make a working example of these things in plain HTML and CSS.
  3. In DrRacket, define a static X-expression that is equivalent to the HTML markup from your working example.
  4. Write a function (or set of functions) that produce this X-expression.
  5. Add inputs to this function and refine it so that it can do all the things you envisioned in Step 2.