Last modified: 2014-11-19 17:38:58 UTC
LESS support was recently added for RL, but only for core/extension generated modules. It would be nice if users could also create their own .less subpages (or MediaWiki: pages for sitewide) that RL would automatically compile into CSS. Ori mentioned on IRC that there may be some security issues that need to be addressed like @import "/etc/passwd";
Yes, we'll need to devise some way to override the @import handling...
Extending summary because I spent way too long looking for this bug.
Note that besides other security vectors, there's also a DOS vector. Small .less files that generate several gigabytes of output and consume large amounts of CPU for long periods of time can be made.
Using LESS inside the user space is in my opinion of very little value because, contrary to the file system, there wouldn't be much re-use or composition. It'd basically just be syntactical sugar for something that is relatively trivial to do without LESS. It might even be something we'll never do, or do much later on once we get a grip on more important things and have found ways around the problems it introduces. At this point I'd recommend against writing a patch, as it wouldn't be ready for approval.
Why not add https://github.com/leafo/lessphp/blob/011afcca8e6f1000a6e789921ba805fa578271a3/lessify.inc.php to mediawiki which converts css to less.