I currently have a context variable in a .mako file that represents a file name.
I want to break up the file name into two parts: the title and the extension. I want to do this to apply different html/css to the extension part.
Is there a way to do this in the .mako file using Python blocks because I couldn't figure it out? If not, what could I possibly do as a workaround?