LESS + CoffeeScript for ASP.NET = LessCoffee

As documented in recent posts, I’ve been tinkering getting the LESS and CoffeeScript compilers running on Windows Script Host. I’ve now got round to wrapping these up as ASP.NET HTTP Handlers so you can easily use them in ASP.NET-based websites. You simply reference the *.less and *.coffee files and they get served up as CSS and JavaScript directly. For example:

No need to install add-ins into Visual Studio or add build steps to your project. The main downside is that it won’t run on non-Windows platforms under Mono (although I’m tempted adapt it to use Mozilla’s SpiderMonkey JavaScript Shell).

12 thoughts on “LESS + CoffeeScript for ASP.NET = LessCoffee”

I was getting sick of duplicating entries all over the place to apply my theme to jqueryUI, so i hit up nuget and typed in “less css” on a whim – and there you were! Worked from the get-go – filled in my config file and everything. Thanks!

Hi Duncan,
I am trying to learn coffeeScript. But I am having a problem. I couldn’t run coffeescript from coffee file in asp.net. I wrote my problem this page “http://stackoverflow.com/questions/9110405/run-coffeescript-from-coffee-file-in-asp-net”.
What should I do?