Is here any way how to execute Coffescript script in Nodejs without translation to js or coffee command.
Something what will translate coffeesctipts on the fly, how will node request them.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
First, do
npm install coffee-script, then in your server.js (or app.js) dorequire('coffee-script')and any coffeescript files will automatically be compiled.This tutorial series goes into how to include coffeescript files so they will automatically be recompiled when they are edited:
http://nodetuts.com/tutorials/16-introduction-to-coffeescript-and-nodejs.html#video
http://nodetuts.com/tutorials/14-some-nodejs-tools.html#video