I use PHP (lessphp) to compile LESS files into CSS files on the serverside. I would like to pass a variable to the LESS file, like a color or a language:
compile('input.less?lang=en')
and use it as a variable in LESS like @lang.
Is this possible? If not, are there any workarounds?
This is a built in feature of lessphp, here’s the documentation: http://leafo.net/lessphp/docs/#setting_variables_from_php