How can i process a coffeescript code directly into javascript in node.js ?
maybe i could use the coffee compiler using child_process.exec/spawn/fork but is there a direct way ? like loading a library (that ships with the coffee package when it's installed with npm) and passing code to it, that returns the compiled code directly ?
You can do npm install coffee-script
and then just put var coffee = require('coffee-script');
to get access to the coffee.compile
function which will do what you want.
did you have a look at Express? It supports coffeekup template engine too.