{"issue":{"title":"Fixed @import using lessphp filter and relative paths","user":{"login":"hades200082","id":1023581,"url":"https://api.github.com/users/hades200082","avatar_url":"https://secure.gravatar.com/avatar/99f199bc4c83c9f425bbe613013e9c28?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"99f199bc4c83c9f425bbe613013e9c28"},"created_at":"2011-12-29T01:00:47Z","milestone":null,"state":"open","updated_at":"2011-12-29T01:09:59Z","labels":[],"id":2676332,"closed_at":null,"html_url":"https://github.com/kriswallsmith/assetic/issues/170","pull_request":{"patch_url":"https://github.com/kriswallsmith/assetic/pull/170.patch","html_url":"https://github.com/kriswallsmith/assetic/pull/170","diff_url":"https://github.com/kriswallsmith/assetic/pull/170.diff"},"body":"Changed filterLoad() to use lessphp's built in loading of files. This allows @import of .less files to work correctly with paths relative to the .less file being loaded.","number":170,"url":"https://api.github.com/repos/kriswallsmith/assetic/issues/170","comments":2,"assignee":null},"comment":{"user":{"login":"hades200082","id":1023581,"url":"https://api.github.com/users/hades200082","avatar_url":"https://secure.gravatar.com/avatar/99f199bc4c83c9f425bbe613013e9c28?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"99f199bc4c83c9f425bbe613013e9c28"},"created_at":"2011-12-29T01:09:59Z","updated_at":"2011-12-29T01:09:59Z","id":3297074,"body":"The basic lessphp filter has never worked for me in any project.  It always breaks as soon as I add an `@import` statement to another .less file  I always have to apply this patch manually to get it working.\r\n\r\nYou can test for this by trying to `@import \"filename.less\";` for a filename.less file located in the same directory as the asset being loaded.\r\n\r\nNo idea how I'd write a test case for this problem to be honest... I just know that it doesn't work until I apply this change.  I reported it as a bug here a while back and it was closed stating that it was a lessphp issue.  Posting the bug on the lessphp github page they said it was a problem with the filter ... no-one wanted to take ownership of it so I got it working and figured I'd show you what I did in the hopes it might help others.","url":"https://api.github.com/repos/kriswallsmith/assetic/issues/comments/3297074"},"action":"created"}