{"issue":{"state":"open","created_at":"2011-06-09T17:01:46Z","updated_at":"2011-12-12T11:48:11Z","comments":6,"user":{"gravatar_id":"4d297823d5942e9b6a57e65b3bbbed42","id":840412,"url":"https://api.github.com/users/javiermarinros","avatar_url":"https://secure.gravatar.com/avatar/4d297823d5942e9b6a57e65b3bbbed42?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"javiermarinros"},"body":"An interesting feature for improve the custom functions may be allow to return multiple values for the same property. As example, I can do:\r\n\r\n```php\r\nclass myless extends lessc {\r\n    function lib_gradient($arg) {\r\n        list($type, $value) = $arg;\r\n\r\n        return array($type, array(\r\n'url(...)',//Path for a background image generated from PHP 'on-the-fly' for old browsers\r\n'-moz-linear-gradient(top, '.$value[0].' 0%,  '.$value[1].'100%)',\r\n'-webkit-gradient(linear, left top, left bottom, color-stop(0%, '.$value[0].'), color-stop(100%,  '.$value[0].'))'\r\n));\r\n    }\r\n}\r\n```\r\n\r\nAnd for this input:\r\n\r\n```css\r\nselector {\r\n background: gradient(#fff, #000);\r\n}\r\n```\r\n\r\nWill generate:\r\n\r\n```css\r\nselector {\r\n background: url(path/to/gradient/image);\r\n background: -moz-linear-gradient(top, #fff 0%, #000 100%);\r\n background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #fff), color-stop(100%,#000));\r\n}\r\n```\r\n\r\nThank you","assignee":null,"id":1031310,"labels":[],"number":111,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"title":"Powerful custom functions","html_url":"https://github.com/leafo/lessphp/issues/111","closed_at":null,"url":"https://api.github.com/repos/leafo/lessphp/issues/111","milestone":null},"action":"created","comment":{"created_at":"2011-12-12T11:48:11Z","updated_at":"2011-12-12T11:48:11Z","user":{"gravatar_id":"4d297823d5942e9b6a57e65b3bbbed42","id":840412,"url":"https://api.github.com/users/javiermarinros","avatar_url":"https://secure.gravatar.com/avatar/4d297823d5942e9b6a57e65b3bbbed42?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"javiermarinros"},"body":"Sure, you have it in https://github.com/javiermarinros/Tinyfier","id":3105029,"url":"https://api.github.com/repos/leafo/lessphp/issues/comments/3105029"}}