This function is lifted straight out of Fredrik Lundh's
example of XHTML generation in his original ElementTree builder proposal. It is a function
that takes a list of CSS element class names and returns
a dictionary that will decorate an element with those
class names.
def CLASS(*nameList):
return { 'class': " ".join(nameList) }