What We’ve Learned
Move values to the dictionary
Insert keys in the template
Iterate over a list of entries $for key$ … $end$
Test conditions $if key$ … $end$ $unless key$ … $end$
Notes:
Review what we’ve learned so far.
We have seen how to extract significant values from surrounding structural text and place them in a dictionary. A key is chosen that illustrates the function of the value in the text.
We have seen how to begin building a template by replacing all occurrences of the values with the corresponding keys.
We have seen how to create a list in the dictionary and how to direct the template to iterate over the entries in the list.
We have seen how to test a key and generate text only if it is present or absent.