playframework/Play20 — pull request #366 by thesamet (2012-06-19 05:25:31+00:00)
Title: Allow Less compiler to compile files that import files from other directories.

When one imports a LESS file that in turn imports a LESS file from another directory, the directory context that is passed to the parser is lost. Then, if the second LESS files contains an import statement, LessCompiler will attempt to resolve the third imported file relatively to the original file.

This fix ensures that the right directory is passed to the parser that is instantiated at import time. The code mimics the behavior in Less's importer that LessCompiler overrides. See

https://github.com/playframework/Play20/blob/master/framework/src/play/src/main/resources/less-1.3.0.js#L3249
https://github.com/playframework/Play20/blob/master/framework/src/play/src/main/resources/less-1.3.0.js#L3249