Return a day as a table cell.
(self, day, weekday)
| 493 | cssclass_year = "year" |
| 494 | |
| 495 | def formatday(self, day, weekday): |
| 496 | """ |
| 497 | Return a day as a table cell. |
| 498 | """ |
| 499 | if day == 0: |
| 500 | # day outside month |
| 501 | return f'<td class="{self.cssclass_noday}"> </td>' |
| 502 | else: |
| 503 | return f'<td class="{self.cssclasses[weekday]}">{day}</td>' |
| 504 | |
| 505 | def formatweek(self, theweek): |
| 506 | """ |