+
+ # the full grammar for valid css class names is completely bonkers (to put it mildly).
+ # so instead of trying to punch filenames into those class names, we'll
+ # just reduce them to a nice minimal set of lower case /[a-z0-9_-]*/
+ $name = lc $name;
+ $name =~ s/[^a-z0-9_-]/-/g;