0

I'm trying to use CoffeeScript in the front-end part of my code. I've not been able to locate the precise location of the JavaScript script for running CoffeeScript on the front-end. Can you help?

2 Answers 2

1

This is a very simple issue to solve, and I believe it has already been posted on Stack Overflow. For your knowledge, however, it would be correct to view the documentation on CoffeeScript's website, specifically here.

The URL to the compiler is here.

Once you've added the script to this hyperlink, add this code and you're good!

<script type="text/coffeescript"> # Your code </script>
Sign up to request clarification or add additional context in comments.

1 Comment

Thanks for the URL to the script. I got the CoffeeScript working on the front-end!
0

Usually people run node on local machine and node transpiles the coffeescript to javascript for you.

2 Comments

Inserting the coffeescript into a view isn't a good practice because it eventually has to be converted into javascript by the client machine. It's best to transpile into javascript before you deploy for public usage.
I only want to use it for quick development, but thank you!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.