I am attempting to return LESS variables in the response from an ASP.NET MVC controller method -- which are @imported into the body of a LESS file. The purpose is to allow users to customize the appearance of of a multi-tenant web application. This almost works.
The sample.less file that imports the response of the above controller...
Also in BundleConfig.cs, I include the following to include the LESS files...
I had to define the variables @color1 and @color2, otherwise I get an error that those variables do not exist. I can see in the Chrome Debugger Network monitor that the StyleController Index method returns the response I expect -- the LESS variables. However, LESS apparently is not recognizing those variables; most likely it doesn't consider the response to be valid LESS. What am I missing or misunderstanding? Thanks, Rod Early |