This question is not so specific, but I will ask it anyway.
Is it possible (better possible and easy) to use less compiler when saving options for a component or plugin?
What I want - many content plugins offer user input css, which they inject directly into html code as inline style. My idea is to modify and compile css file when pressing 'Save' button in the backend. This will eliminate use of inline css-es, but will preserve option for user modifications there. I've read about firing less compiler at page load, but I think this should be avoided too.
What is your opinion? And to be more specific - what kind of code I need and where to locate Save action?