How to Design Pollen Markup
A layman’s attempt at applying the How to Design Programs design recipe to programming in Pollen:
- 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.
- For each thing, find or make a working example of these things in plain HTML and CSS.
- In DrRacket,
define
a static X-expression that is equivalent to the HTML markup from your working example. - Write a function (or set of functions) that produce this X-expression.
- Add inputs to this function and refine it so that it can do all the things you envisioned in Step 2.