I know ASP.NET can be configured to handle any file type in any way, but most of us have other work to do, even on weekends. I’m becoming very interested in an asp.net handling pipeline for, say, *.csx files, where I can do something like:
.module-div h2
{
margin-top: 5px;
color: [css:Color runat="server" Selector-Include="h2" /]
}
Then in code behind, I could iterate all Color controls with selectors that include “h2” and assign the same colour. I find myself frequently replacing color constants when I decide to change a general scheme colour.
This sounds allot like what lesscss is trying to acomplish. There is a .net port you can read more about at http://blog.smoothfriction.nl/archive/2009/08/13/lesscss-the-.net-edition.aspx. It also allows inheritance of classes etc…