playframework/Play20 — pull request #521 by jroper (2012-11-06 08:04:04+00:00)
Title: [#653] Fixed nested less imports and error handling

There were a number of problems with less imports handling. Here's what I did:

* Chained imports (a imports b, b imports c) was broken if all files weren't in the same sub directory. I fixed this by keeping an import file stack, to use to work out where the relative locations of various files were.
* Error reporting for imports was broken in a number of ways too, this was fixed by a combination of upgrading to less 1.3.1, adapting our code to handle this (which meant updating the content cache so that Less could look up the content of the file where the error occurred), and giving imports an absolute filename so that we could correctly map back to the source file.