How to pass a variable from PHP to LESS?

后端 未结 2 1229
小鲜肉
小鲜肉 2021-01-05 08:53

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:

com         


        
2条回答
  •  广开言路
    2021-01-05 09:26

    This is a built in feature of lessphp, here's the documentation: http://leafo.net/lessphp/docs/#setting_variables_from_php

提交回复
热议问题