Cimex

Nov 27

Keeping CSS Files DRY with .less

Those of you that followed Joe’s talk a few weeks back about SASS , will know about how excited he was about it, and with good reason.

I’ve just stumbled across {less} , which looks like a similar tool (ie it supports mixins, variables and operations, and is compiled locally using Ruby). However i think the differences might make it a better fit for for us. They are:

1. It handles nesting slightly differently (and in a way that I think makes more sense) as the scope of the style rule isn’t defined by tabs/whitespace, but with braces.

2. It has a .NET handler which means us .NET people can serve the .less files magically and without performance impact (ie the .NET process does the compilation and caches/serves the resulting css to the browser)

  • Permalink
  • Posted at 10:15 AM
← Previous post Next post →
  • Archive
  • Random
  • Mobile
  • RSS
  • Powered by Tumblr
  • ER2 theme by Bill Israel