I am not sure if it is good idea. Here is my requirement.
I have one default less css file and other dynamic less file generated from datasets. Now, I want to compile the above less files to single css file.
So, for this I am thinking of running node.js to do it in background asynchronously with celery. I understand there is python port to compile less to css, but I think node.js is better for this.
Suggestions and ideas please. Thanks in advance.
Well, I solved this myself using subprocess. Actually, any Unix command can be used this way.
import subprocess
p = subprocess.Popen(['lessc', '-x', '-'], stdin=subprocess.PIPE, stdout=subprocess.PIPE)
output = p.communicate(less_content)