I would like to store .less parameters in a DB, an example use case might be that colour changes for each user based on his or her preference.
I figure the best way to do this would be to parse all the .less files to get the parameters, the user can then set the parameters which would save in a DB against the user. When the less file is requested a handler overload can query the DB for the parameters. The handler can then output the css with the parameters set.
Questions: - How can I take a .less file and get a list of parameters? - How can I take a .less file an array of parameters (key value pairs) and output css?
All using the dotless framework.