How to pass a variable from PHP to LESS?

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.

Read More

Is this possible? If not, are there any workarounds?

Related posts

2 comments

Comments are closed.